New Component Router and how set up angular 2 tin ASP.NET MVC(WEB API)?

19 views
Skip to first unread message

Long Field

unread,
Jun 28, 2016, 8:06:58 PM6/28/16
to AngularJS

Can anyone tell how new component Router works under ASP.NET MVC/WEB API environment? as both MVC(WEB API) and component Router try to explain what url means.
   

my index.cshtml has just my-app and there is component router inside my-app like:

<my-app>Loading</load>



error as :
Error: Error: XHR error (404 Not Found) loading http://localhost:8080/Home/app/main.js(…)    Index:29 

Long Field

unread,
Jun 28, 2016, 8:27:00 PM6/28/16
to AngularJS
Just read other post and solution for my issue is to use  <base href="/" />
not  <base href="." />
Reply all
Reply to author
Forward
0 new messages