1

I am a newbie to Angular 2, and learning Angular 2 step by step follow the quickstart tutorial as this

I noticed that we need to start the server when using Angular 2 as so:

npm start

I am confused about that... why do we need to start the Angular 2 server? When we use ASP.NET MVC to handle the front-end request, how can we run npm start?

2
  • 1
    If you use angular in your MVC application, you don't need to start the angular server. The npm start is only for your standalone ng2 apps Commented Jan 31, 2017 at 11:51
  • As @devqon mentioned, you don't need to start the angular server. You may find this article useful: codeproject.com/Articles/806029/… Commented Apr 10, 2017 at 7:57

1 Answer 1

1

If i understand your question, you wanted to run Angular 2 with ASP.NET MVC. I believe you do not have to run npm start when you using ASP.NET MVC.

There is an article to how to run Angular 2 in visual Studio. http://www.mithunvp.com/using-angular-2-asp-net-mvc-5-visual-studio/.

Make sure you have install latest typescript and follow the above link.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.