Angular 8 requires node.js version 10 or latest to run properly. We can download the node.js latest version from their website . Even if you have an earlier version of node.js, the installer will upgrade it to the latest version.

The Angular team has now officially released the latest Angular version 8. There are many new features added to Angular 8. We will see how to create an Angular 8 application in ASP.NET Core and Visual Studio 2017. After creating the Angular application, we will create a Web API controller to fetch the latest C# Corner post details from the RSS feeds and show it in the home page of the Angular application.

After installing the node.js latest version, we can now upgrade Angular CLI. Please use the below command to upgrade Angular CLI.

npm i -g @angular/cli

This will automatically upgrade our existing Angular version to 8 (current). Please note, this will ask you for a confirmation to share anonymous usage data to Google.

You can say no if you do not wish to share the data. It will take some moments to upgrade our Angular version. After successful upgradation, please verify your current Angular CLI version in command prompt.

We can notice that our Angular CLI is now upgraded to 8.0.0 and Node is also upgraded to 12.3.1.

Create a Web Application with ASP.NET Core and Angular template

We can create a web application using ASP.NET Core and Angular template in Visual Studio 2017. I often create Angular apps with ASP.NET core in a single project. It will help us to maintain a single application to deploy IIS or Azure. Using this approach, continuous integration and continuous delivery (CI/CD) operations will be very easy.

We can choose ASP.NET Core 2.2 framework and Angular template to create the app. After some time, our project will be ready with all .NET Core dependencies.

If you look at the project structure, you can see a “ClientApp” folder under “wwwroot”.

This is the Angular project. You can see only some default files like “angular.json” and “package.json” inside “ClientApp” folder.

You can open the “package.json” file and find that Angular version is still 6 only. We need to upgrade our application to Angular 8.

We can simply delete the “ClientApp” folder. Using the below command, we can create a new Angular project with the same name “ClientApp”.