1 2 3 4 5 6
import { Injectable } from '@angular/core'; @Injectable() export class ApiService { title = 'Angular 2'; }