Quantcast
Channel: AngularJs routing with Asp.Net Mvc - Stack Overflow
Viewing all articles
Browse latest Browse all 7

Answer by Ahmed Alhashedi for AngularJs routing with Asp.Net Mvc

$
0
0

AngularJs Routing Does not working with cshtml files !!

if you want to use angularjs routing with mvc view (cshtml) file use both routing:angular routing + mvc routing

your routing code should be like this:

.when("/Home", {        templateUrl: "/Home/Home",        controller:"HomeController"});

where First Home is Controller Nameand Second Home is The Action Name at the Mvc Controller.


Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>