docs(aio): update migrated content from anguar.io
This commit is contained in:

committed by
Pete Bacon Darwin

parent
ff82756415
commit
fd72fad8fd
@ -0,0 +1,17 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
import { of } from 'rxjs/observable/of';
|
||||
|
||||
export interface Villain { id: number; name: string; }
|
||||
|
||||
@Injectable()
|
||||
export class VillainsService {
|
||||
villains: Villain[] = [
|
||||
{ id: 1, name: 'Dr. Evil'},
|
||||
{ id: 2, name: 'Moriarty'}
|
||||
];
|
||||
|
||||
getVillains() {
|
||||
return of(this.villains);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user