Is it possible and how to use angular 4 with asp.net mvc, on iis.
- Yes, but better in individual projects. From experience, I can say that IDE is not better for Asp.NEt than Visual Studio, and for Angular, WebStorm. And not Asp.Net MVC, but better ASP.NET WebApi - gromanev
- And how to use on one site, nodejs hosts on one, iis on another. For core, you can use dotnet start, but I have errors - Dzmitriy Salodki
- oneEverything is trivially simple and is hosted on IIS quietly, only you need to find modules for starting up NodeJS for IIS. The angular application is launched not with the Asp.Net Core project but with a separate application and the ng serve command gromanev
1 answer
The native environment for projects on Angular is Visual Studio Code, but of course there is an opportunity to use Visual Studio 2017 or WebStorm
1) Must install TypeScript
2) as well as Node.JS
3) You need to install NPM version 5 or higher
4) Install a ready-made project template from the community - Angular5TemplateCore
Open Visual Studio 2017 and go to File -> New project. Select the Online section from the projects menu, then Visual C #. From the list we search and select Angular5TemplateCore and click OK.
We close Visual Studio and wait for the installation of the template Angular5TemplateCore. After the installation is complete, it is time to build an application on Angular 5 on the core ASP.NET Core. More in the description below.
5) Create an application
In the studio New >> Project. Next, Visual C # >> choose Angular5Core2.
When the project is created, we can open Solution Explorer where you can see examples of Angular5, HTML, and application components in the ClientApp folder, which is at the ASP.NET Core level with Controllers and View controllers.
6) You need to build and run the application



