For .NET Developers only!
For many Angular solutions, a good practice is to keep your client-side and server-side code in separate projects.
For some solutions, it might be simpler to integrate your client-side and server-side into a single project – and with the SPA templates for ASP.Net Core, this has never been easier.
To create an Angular application with the SPA template new project from the command line or you can use Visual Studio. From ASP.NET Core 2.1 onwards, this template is included.
dotnet new angular -o MyAngularApp
Figure: Creating a project using Visual Studio
Although Visual Studio can be used to create the project, we still recommend Visual Studio Code for working with the Angular code, as per Do you know the best IDE for Angular?
Figure: A simple example WebAPI
Figure: An Angular UI with Twitter Bootstrap styling
This Angular app uses the Angular CLI and is fully compatible with any other Angular CLI app. If you want to create a new app from scratch, simply delete the contents of the ClientApp folder and run ng new.
So you get the benefits of easy client-server integration without having to compromise any Angular client-side features or Angular CLI tooling.