Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asp.net mvc vs Angular JS for developing applications [closed]

What I understand:

Asp.net MVC is used to develop applications that processes request at server. It also delivers view. But ultimately it renders the view at server and sends plain HTML to user.

On the other hand, angular JS does not do any processing at server. It only serves HTML or JavaScript files to client and then client executes those files. Angular Application only expects Data via services that run on server.

My Question:

If at all angular does not cause any server side processing load, why not to use it always to develop front end application, and on server why not to use any service (Such as web API or WCF) instead of MVC? In short, why do we need to server side view processing framework at all, instead we can have service at server and angular application on client?

like image 916
Aditya Bokade Avatar asked Aug 02 '17 10:08

Aditya Bokade


People also ask

What is ASP NET MVC with AngularJS?

ASP.NET MVC AngularJS | What is ASP.NET MVC with AngularJS? ASP.NET MVC AngularJS is the Frontend JavaScript and it is the structural MVC Framework that is used to build dynamic web applications.

What is the difference between AngularJS and angular/net?

Angular js is client side framework and .NET is server side frame work.Angular js follows MVVM and .Net follows MVC. .NET advantages. The .NET runtime is a very mature, well understood framework that remains very popular.

Should I learn angular or react for MVC?

Both Angular and React are best run as single page applications, and data is best fetched using REST calls. That means that the ASP.NET MVC runs just as good or bad with either of the js frameworks. Angular is likely easier to learn for developers with a long background in C#, but the js community is definitely going more for React than Angular.

Why choose angular for single page application development?

Single-page applications, and Angular in particular, are constantly being updated with more and more presentation libraries and extensions compared to ASP.NET MVC. Angular provides robust extensibility and customization and has deep community support that is continually growing. 6. Team support.


1 Answers

Both ASP.NET MVC and AngularJS has their own purposes and advantages. As with your specific question, AngularJs is better for SPA (Single Page Applications), where as ASP.NET MVC is a full fledged server side Application which can contain WebAPIs, Routing engine as well as HTML emitting Views.

The reason why always a server side application like ASP.NET MVC is preferred first is that, it caters all basic needs, whereas AngularJs in many cases is cherry on top of the cake. It gives a smooth user experience for web applications. Also AngularJs is not very consistent as it depends on the user's browser which varies a lot and could lead to inconsistent results. So a server side application is always the best fallback to make sure the user's basic purpose is fullfilled.

like image 115
Habeeb Avatar answered Nov 10 '22 00:11

Habeeb