Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between MVC in Angular JS and MVC in ASP.NET or Spring MVC?

I'm trying to understand modern web applications architecture. In ASP.NET MVC, all the business logic classes are in Model and Controller takes and guides user requests.If I am using it, is it possible to use Angular JS which itself is a MVC architecture but all the business logic is in controller and model is just POJO. Can Angular JS be used only with Web API 2 where it gets data from a RESTful service and it does all manipulation on the client side? Which architecture is most commonly used ?

like image 349
CodeBeginner Avatar asked Sep 20 '25 04:09

CodeBeginner


1 Answers

From my perspective, you're confusing two very different technologies; One is server-side (ASP.NET MVC) an one is Client Side (AngularJS).

The two can certainly be used hand-in-hand as neither are dependent on the other existing. And, IIRC, there is a scaffolding module on NuGet that helps bindings from one to the other (Create JS objects from your ASP.NET POCO objects).

With that being said, there is no reason you need to use both. You can one one or ther other, both, or bring in a different technology altogether (KnockoutJS, etc.)?

like image 53
Brad Christie Avatar answered Sep 22 '25 16:09

Brad Christie