Reputation: 933
We are developing an ASP MVC 5 application. In Our dataBase we have a list of 700 companies. The aim of this application is to display an index view to list all this companies. there is also a link to display the details of each company.
Do you think that angularJs is good for such as web site?
If it is the cas how can i combine between MVC and angularJs?
When i have to use angularJs rather than using jquery?
Thanks.
Upvotes: 0
Views: 381
Reputation: 1341
I think you are trying to use a mallet to pound the back of a hammer to drive a nail. there is no feasible reason to use ASP.NET MVC over angular.js even though i live and breathe angular. It seems you want the binding that angular provides which can easily be achieved with AJAX + jquery in A.MVC5
Upvotes: 0
Reputation: 2220
Do you think that angularJs is good for such as web site?
Your requirement looks trivial and for such requirement either Angular Js or ASP.NET MVC would be good. I dont see much trade-off here. Please note that, from ASp.NET MVC to Angular JS, its a paradism shift - essentially you are moving from server centric MVC to client centric MVC architecture. Ofcourse you can use both (Angular JS + ASP.NET MVC) building an application, but if you are going angular way, Angular JS + Web API would be your best bet.
If it is the cas how can i combine between MVC and angularJs?
Please look at http://josephjefferson.wordpress.com/2014/04/03/merging-asp-net-mvc-and-angularjs-routing/
When i have to use angularJs rather than using jquery?
answer to this question needs couple of blog post :) In simple words, you can say AngularJS is a (MVC) framework (and jQuery is a hig-level library), hence Angualr JS enjoys all sort of MVC benefits AngularJS code is more testable, you can write unit test code (using jasmine) and end-to-end test using protractor AngularJS supports many many many excellent features like two-way binding, directives, routing, dependency injection etc... those you wont get in jQuery.
Upvotes: 2