Services
Services are singletons ( Style 07-01)
Single responsability (Style 07-02)
Providing a services (Style 07-03)
Use the @Injectable() class decorator (Style 07-04)
@Injectable()
export class HeroArena {
constructor(
private heroService: HeroService,
private http: Http) {}
}Was this helpful?