Angular and ASP.NET Core RESTful Services
THIS PROJECT IS DEPRECATED and no longer maintained. A newer version of the project that uses the Angular CLI and the latest version of Angular can be found here:
https://github.com/DanWahlin/AngularCLI-ASPNET-Core-CustomersService
This project has been updated to use the latest version of Angular and RxJS but does not use the Angular CLI (it uses System.js to load modules). Key changes from the Pluralsight course include:
This project demonstrates how Angular and ASP.NET Core can be used together.
Open the .sln file in Visual Studio
Install Gulp: npm install gulp -g
Run npm install
to install app dependencies (make sure to run this in the folder where the package.json file lives)
Run the following Gulp task to copy required Angular modules into the wwwroot
folder:
gulp copy:libs
Build and run the application (F5)
Browse to http://localhost:5000
Open the project folder in VS Code
Install Gulp: npm install gulp -g
Run npm install
to install app dependencies (make sure to run this in the folder where the package.json file lives)
Run the following Gulp task to copy required Angular modules into the wwwroot
folder:
gulp copy:libs
Run npm run tsc:w
to compile TypeScript to JavaScript locally (leave the window running). This is only needed when in "dev" mode.
Open another command window and run the following:
Run dotnet restore
Run dotnet build
Run dotnet run
Browse to http://localhost:8000