Answered by:
Is Angula 2 another standalone web development platform or would it provide some value/benefit to an MVC (5) project?

Question
-
User508577675 posted
I just learned Angular 2 using Asp.Net (as the host?). I developed a fairly comprehensive Angular 2 project using Visual Studio (2015). I started out with an empty Web Project. The only thing I could see that seemed related to Asp.Net was the web.config file. Everything else was Angular 2 -- the Type Script files, ... It seems like VS 2015 was like a substitute for the Angular 2 CLI tool for compiling. This Angular 2 project also included a WebApi project in the same solution for fetching data from a sql server.
My question is if Angular 2 would provide some value to an MVC (5) project or is it just another standalone web development platform like PHP is another web development platform? It seems to me that I can do everything in MVC that I could do in Angular 2. So would it be just a matter of preference if I want to develop a web project in MVC or Angular 2? Or would Angular 2 provide some additional value/benefit to an MVC project?
In my readings for example, I gather that Angular 2 is geared for mobile development. I also started experimenting with Xamarin for mobile development in Visual Studio - before Angular 2. I just want to know where I should place Angular 2 in my web toolbox.
Tuesday, November 28, 2017 5:02 PM
Answers
-
User61956409 posted
Hi Rich,
the actual question is if it is just a preference to develop front-end applications with MVC or with Angular 2.Different developers will have different preferences, if someone familiar with MVC and Razor view engine may prefer MVC, if someone want pure HTML and JSON/JavaScript, they may prefer Angular 2.
With Regards,
Fei Han
<sub></sub><sup></sup>
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, November 30, 2017 2:17 AM
All replies
-
User61956409 posted
Hi Rich,
AngularJS is an open source framework built over JavaScript, and it could be used to extend HTML attributes and bind data to HTML quickly. Normally, we use it to build font-end web application, and as you mentioned, AngularJS also enables us to send request to back-end application (such as Webapi) for operating database via http service.
For more information about AngularJS features and benefits, you can check this article.
With Regards,
Fei Han
<sub></sub><sup></sup>
Wednesday, November 29, 2017 2:47 AM -
User508577675 posted
Hello Fei, Thank you for your reply. Yes, I am aware of what AngularJS does. My question is about Angular 2 which is a totally different platform (the only commonality between AngularJS and Angular 2 is that they were both developed by Google). I believe Angular 2 is a standalone platform from my experience thus far. So the actual question is if it is just a preference to develop front-end applications with MVC or with Angular 2.
Wednesday, November 29, 2017 4:08 PM -
User61956409 posted
Hi Rich,
the actual question is if it is just a preference to develop front-end applications with MVC or with Angular 2.Different developers will have different preferences, if someone familiar with MVC and Razor view engine may prefer MVC, if someone want pure HTML and JSON/JavaScript, they may prefer Angular 2.
With Regards,
Fei Han
<sub></sub><sup></sup>
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, November 30, 2017 2:17 AM -
User508577675 posted
Thank you Fei, I just needed some acknowledgement that it is just a preference like I could choose to develop in either of PHP, MVC, Angular 2, Ruby on Rails, .... and it's not like Angular 2 is some enhancement to Asp.Net, where AngularJS is more of an enhancement type library -- Angular 2 is a development platform.
Thursday, November 30, 2017 4:15 PM