Angular2 404 Not Found for URL: http://localhost/WebApi2/api/hero

后端 未结 2 1200
余生分开走
余生分开走 2021-01-07 06:16

I have tried the http Angular 2 and TypeScript example on https://angular.io/docs/ts/latest/tutorial/toh-pt6.html it works. https://embed.plnkr.co/?show=preview

Upda

2条回答
  •  不知归路
    2021-01-07 06:53

    I had the same issue, after some frustrating researches I solved the 404 error thanks to this. The order of imports matters.
    Hope it helps someone.

提交回复
热议问题