angular 4 with asp.net core 2 and WEB API | REST services - Tutorial

For Consultation : +91 9887575540

Stay Connected :

In this tutorial and demonstrating that how we can create angular 4 project using Web API first task is to create Web API using Visual Studio and copy the address of running Web API which will be used later.


Code for enabling cors in web API



Step 1: Create a project using the angular template in visual studio 2017.

Step 2: Create new Service(myhttpservice.service.ts)


Step3: Add following code to app.component.ts

Step 4: Run Your project

ASP.NET Core 2.0 Online Training

ASP.NET Core 2.0 Online Training

Select your currency