Explain the steps for creating a services in Angular 2?
Here are the steps:
- Import injectable member
- Add @Injectable Decorator
- Export Service class
Here is the syntax:
import { Injectable } from '@angular/core';
@Injectable()
export class MyCustomService {
}
BY Best Interview Question ON 13 Jan 2019