Loading…

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 {
}

Suggest An Answer

No suggestions avaliable!

Latest post from Angular 2 Interview Questions

Ask Question