The advantage of using angular js on top of asp.net mvc

Does it make much sense to use angular js on top of asp.net mvc, since they kind of do the same thing? What are the benefits of using angular for asp.net mvc + jquery? Which scenario would you choose angular? If you chose angular in a microsoft environment, what would you run on the server side? Will it be something like a web API? Or is there another advantage to using traditional asp.net mvc?

+42
angularjs asp.net-mvc
May 04 '13 at 18:11
source share
3 answers

On my site http://www.reviewstoshare.com I use AngularJS with ASP.NET MVC. The main reason I did not advance with AngularJS was that SEO is not easily achieved with AngularJS. Keep in mind that my site has already been created using ASP.MVC + jQuery to interact with you as needed.

On the other hand, the site still has the nature of "Ajaxy", such as comments, voting, tagging, etc. Not too different from Stackoverflow itself. Before AngularJS, it was a mess of plugins and JQuery functions in the $(document).ready() callback, not to mention the fact that the JS code was not tested.

In the end, I went with both.

+15
May 05 '13 at 3:24
source share
— -

This question is a bit subjective, but here was our reasoning.

  • Let the client process page processing, free up resources on the server.
  • Using the built-in caching of cache servers, since we are dealing with <html/> content.
  • Since pages are cached, the only forward and backward movement is json's helpful info.
  • We used NancyFx , but WebAPI or Service Stack will work fine.
  • We wanted to create a responsive one-page application, and AngularJs matched the bill to check as a full-featured infrastructure.
  • AngularJs forces you to use the template that we need for JavaScript, in the past our heavy jQuery applications turned into functional spaghetti (this was our mistake, but guided by Angular helped a lot).

As with all frameworks, choose the one that suits your needs.

+24
May 04 '13 at 18:27
source share

If you like using the Java Script framework, then Angular JS rocks. SEO can be a problem. You need a deeper understanding of the DOM and Java Script compared to other well-known JS Framework. I developed Proof of Concept - using Angular JS with JS requirement, using ASP.net MVC you can look at it at the link below http://angualrjsrequirejsaspmvc.blogspot.com/2013/08/angular-js-with-require-js- front-end.html

+1
Sep 12 '13 at 6:41
source share



All Articles