Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi

I have a requirement for a new project coming up, so I need to decide on a tech stack.
I am more proficient in C# than in javascript but I have some experience in Angular.

So here is the requirement, we will be pulling data from an existing application but there might be a requirement for our app to have its own DB at a later stage.

So far we decided to implement a web api to comunicate with the existing application.
Then we will have a web project as well so my question is that would it be beneficial to write the front en in angular or in asp.net mvc?

What I have tried:

I have experience in both asp.net and angular but I know asp.net better.
Posted
Updated 21-Aug-17 2:24am

Let me answer your question in parts, because you are confused on various aspects here.
Quote:
would it be beneficial to write the front en in angular or in asp.net mvc?
ASP.NET MVC is not a front-end framework, it is a complete web development framework, where the "V" part is for View. Views are generated and even then, you should consider using a proper front-end framework. Angular, Bootstrap, Knockout... Any one can be used there, ASP.NET does not prevent you from doing that.

I use Bootstrap for my front-end, and backend is still ASP.NET Core which lets me build the application, Web API (as you have also mentioned it there!) and other stuff. For your task, I would recommend using ASP.NET Core as a backend — even ASP.NET MVC would be good, if you do not require a cross-platform solution. Then you can build the Views with Angular, or what-so-ever front-end framework you want.
Quote:
I have experience in both asp.net and angular but I know asp.net better.
How well do you know ASP.NET, when you cannot even tell that the Views are not prohibited from using any JavaScript framework?
 
Share this answer
 
Comments
Karthik_Mahalingam 22-Aug-17 3:19am    
5
Afzaal Ahmad Zeeshan 22-Aug-17 6:19am    
Thank you, Karthik.
Jon "Greg"ory Rothlander 14-Sep-17 10:48am    
"How well do you know ASP.Net, when you cannot even tell that the views are not prohibited from using any JavaScript framework?"

Adding that comment seems a bit unnecessary, mean spirited, and a bit self-serving and narcissistic. The point of helping others is not to promote yourself, but to help them. Insulting people in a forum setting because they didn't use what you deem as the proper use of terminology or that they have the wrong understanding of where AngularJS comes into play, or maybe they have a perfect understanding and just failed to explain it well in their post. But insulting them in a forum is childish and unprofessional.

I have been working with ASP.Net full-time since January 2001 and MVC since, I don't remember when but for many years, and now I am looking into using AngularJS as a JavaScript framework for the front end, and I don't think anything the post said shows they lack experience in ASP.Net or AngularJs. Just that they either worded the post a bit odd or maybe it is simply that English is not the birth language. Should we go through your postings and correct all of your grammatical mistakes?

The question is really simple, should I choose MVC over Angular? The answer is simple, you don't have to. If you feel comfortable with both, use both. MVC and AngularJS work well together and they are not mutually exclusive. Many people are using MVC or Core with AngularJS. I am looking into this as well.
Angular.js fits single page applications well and MVC is smack in the middle of dotnet past and future.

Do you know MVC well ? If not chose MVC

Do you know Angular.js well? If not choose Angular.js if you have ambition of working as a front end web developer

Don't know MVC that well, and have ambition of perhaps using .net core (and btw i'd say use that instead of any of the alternatives you have for new things ), choose mvc as it is elaborating on the same technology in terms of overall architectures and flow.

Recommendation: Consider none of the above and go for .net core so you can deploy it cross platform and easiliy step into code for debugging as it is open source and have much faster MVC than traditional .net

I'd go for mvc myself, but if you like the MVVM of angular and don't worry about long term maintenance as opposed to quicker development time, then why not elaborate on your experience in Angular. Angular i reputedly bad for debugging

Perhaps do a web search for pros and cons of the alternatives:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900