I was researching the best pattern to implement in our new project. As you know Angular JS is the hottest cake. So we thought we would implement that. But Angular JS provides the same kind of mechanism like Model and Routing. These are already there in MVC.
Only difference is that these things are server side. Why do we need to follow ANGULAR JS MVW model? I could only see the advantage if we create webapi to serve JSON response then on top of that create HTML 5 application using ANGULAR. But can't we create
ASP.NET MVC application using ANGULAR without redoing what asp.net is already doing?
That's no reason to implement it. It's primary use is in Single Page Applications. Is your new project an SPA? If not, you shouldn't necessarily try to shoe-horn Angular JS into it.
Why do we need to follow ANGULAR JS MVW model? I could only see the advantage if we create webapi to serve JSON response then on top of that create HTML 5 application using ANGULAR. But can't we create ASP.NET MVC application using ANGULAR without redoing what
asp.net is already doing?
If you want to see and experiment the different, use your old application. But like the previous reply you can do it with your new project, from here also you can get the benefit of using AngularJS.
It is not always using AngularJS, in my case for a simple CRUD and it maintain not frequently still better use ASP.Net MVC, because optimization is not a concerned.
Thanks for your reply. and sorry i could not reply as i was on vacation. So i could understand if the project is new and utilizes SPA then we should go ahead with AngularJs and WebApi. But is there any advantage in using Angular in MVC?
I know that. but my question is should i? ours is a SPA. So we are thinking best possible approach to handle. i think ASP.NET and Angular is not a good solution. What would be the best solution in your opinion. ASP.NET MVC or angular with WebApi? Also it
is a new project so we are pretty open to anything, Please let me know if i have any misconception.
Member
4 Points
15 Posts
MVC Vs Web API Angular JS
Nov 04, 2014 07:40 PM|Anirban100|LINK
Hi All,
I was researching the best pattern to implement in our new project. As you know Angular JS is the hottest cake. So we thought we would implement that. But Angular JS provides the same kind of mechanism like Model and Routing. These are already there in MVC. Only difference is that these things are server side. Why do we need to follow ANGULAR JS MVW model? I could only see the advantage if we create webapi to serve JSON response then on top of that create HTML 5 application using ANGULAR. But can't we create ASP.NET MVC application using ANGULAR without redoing what asp.net is already doing?
Thanks
mvc webapi Angular
All-Star
194511 Points
28081 Posts
Moderator
Re: MVC Vs Web API Angular JS
Nov 05, 2014 02:22 AM|Mikesdotnetting|LINK
That's no reason to implement it. It's primary use is in Single Page Applications. Is your new project an SPA? If not, you shouldn't necessarily try to shoe-horn Angular JS into it.
mvc webapi Angular
Contributor
4323 Points
1578 Posts
Re: MVC Vs Web API Angular JS
Nov 05, 2014 02:51 AM|jsiahaan|LINK
Hi,
If you want to see and experiment the different, use your old application. But like the previous reply you can do it with your new project, from here also you can get the benefit of using AngularJS.
It is not always using AngularJS, in my case for a simple CRUD and it maintain not frequently still better use ASP.Net MVC, because optimization is not a concerned.
Have fun.
mvc webapi Angular
Indonesian Humanitarian Foundation
Member
4 Points
15 Posts
Re: MVC Vs Web API Angular JS
Dec 02, 2014 12:55 AM|Anirban100|LINK
Hi ,
Thanks for your reply. and sorry i could not reply as i was on vacation. So i could understand if the project is new and utilizes SPA then we should go ahead with AngularJs and WebApi. But is there any advantage in using Angular in MVC?
Thanks In advance.
mvc webapi Angular
All-Star
194511 Points
28081 Posts
Moderator
Re: MVC Vs Web API Angular JS
Dec 02, 2014 02:14 AM|Mikesdotnetting|LINK
If you want to create a single page application using ASP.NET MVC to act as a data service, then you can use Angular in your views.
mvc webapi Angular
Member
4 Points
15 Posts
Re: MVC Vs Web API Angular JS
Dec 04, 2014 03:42 PM|Anirban100|LINK
Thanks Mike,
I know that. but my question is should i? ours is a SPA. So we are thinking best possible approach to handle. i think ASP.NET and Angular is not a good solution. What would be the best solution in your opinion. ASP.NET MVC or angular with WebApi? Also it is a new project so we are pretty open to anything, Please let me know if i have any misconception.
mvc webapi Angular
All-Star
194511 Points
28081 Posts
Moderator
Re: MVC Vs Web API Angular JS
Dec 04, 2014 04:36 PM|Mikesdotnetting|LINK
I can't give an opinion. I've never used Angular.
mvc webapi Angular
Member
4 Points
15 Posts
Re: MVC Vs Web API Angular JS
Dec 05, 2014 12:17 PM|Anirban100|LINK
Thanks Mike for your response. Is anyone else having any ideas? Please let me know
BR,
Anirban
mvc webapi Angular