I think you have some misonceptions about Angularjs routing concepts.
MVC Routing :
ASP.NET routing enables you to use URLs that do not have to map to specific files in a Web site. Because the URL does not have to map to a file, you can use URLs that are descriptive of the user's action and therefore are more easily understood by users.
Angular Routing :
Angular.js routing using MVC framework does not use MVC
routing.
Comparable parts are:
Model ===== ng-module controller ===== ng-controllerview ===== ng-view
So you can't call the MVC Controller in your angularjs
route config. Does this make sense?
Also please think about some of the differences between cshtml
and html
.
Angular routing and MVC routing are totally different because:
- Angular routing is use client side
- MVC routing is used server side
The above texts are for your understanding only.
I think this discussion will help you :
How to use ASP.NET MVC and AngularJS routing?
Update :
The href
is wrong in Anchor tag.
Its should be href="#/Home"
, not href="#Home"
So please change your code
<a href="#/Home">Home</a><a href="#/Projects">Projects</a>