Click here to Skip to main content
15,924,367 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am an ASP.NET MVC developer and on a verge of starting of new CRUD SPA in ASP.NET MVC with AngularJS.

I don't even know the "ABC" of AngularJS but still trying to go through AngularJS.org and other AJS links.


Below are the things I am looking for:-
1) As in AJS we create javascript controllers, then what will happen to the MVC controller? Do they have any linkage between them?
2) We already have routing in MVC, then what's the use of AJS routing?
3) Can anyone explain, what should be the "Solution architecture" for the SPA CRUD in ASP.NET MVC and AJS application?

Please let me know that right approach from ASP.NET MVC developer perspective.
Posted

1 solution

For 1) both angular and MVC controllers are different concepts. Angular controllers operate on the client side. MVC controllers operate on the server side.
2) Angular routing loads views without even hitting the server
 
Share this answer
 
Comments
Varun Thakur 3-Aug-15 3:22am    
@Abhinav S: Thanks for the replying and I do understand that AJS (Controllers and Routing is pure javascript and runs at client side) but I want to understand it from there usage specially from ASP.NET MVC developer perceptive where these things run at server side. How and why AJS is running them side by side with ASP.NET MVC server side same features?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900