Services in Angular

Generate a Service

We are going to generate a service that handles the HTTP requests to our server, in this example our server is running on http://localhost:8000

ng generate service ServiceName
# or ng g s ServiceName

Service Configuration

//
References