vinayak ghanti

vinayak ghanti

  • NA
  • 92
  • 6.9k

Angular2 Routing with Asp.Net MVC5

Mar 17 2017 6:14 AM
Hi Guys,
 
 I have Asp.Net MVC 5 Razor Engine Project i have successfully configured the angular2 in this project and i have created the Components for  Home/Index and i am getting result also but when am clicking on aboutus link its getting loaded the asp.net mvc controller after that i wont see its getting angular2 api call which i i have written for aboutus .
 
Example: app.component.ts this compoenent contain script to call home/index (asp.net mvc) and home/getscore (angular2 api) both are getting called and am getting data also.
 
app.aboutus.component contain script to call aboutus/getdata but not getting fired instead its loading normal mvc view 
 
so basically i want to know how we can get angular2 routing and mvc5 routing work togther ?.
 
Please let me know.
 
 
Thanks 

Answers (1)