2016-04-09 00:18:37 -04:00
|
|
|
// #docregion
|
|
|
|
export class InMemoryDataService {
|
|
|
|
createDb() {
|
|
|
|
let heroes = [
|
2016-05-19 03:30:30 -04:00
|
|
|
{id: 11, name: 'Mr. Nice'},
|
|
|
|
{id: 12, name: 'Narco'},
|
|
|
|
{id: 13, name: 'Bombasto'},
|
|
|
|
{id: 14, name: 'Celeritas'},
|
|
|
|
{id: 15, name: 'Magneta'},
|
|
|
|
{id: 16, name: 'RubberMan'},
|
|
|
|
{id: 17, name: 'Dynama'},
|
|
|
|
{id: 18, name: 'Dr IQ'},
|
|
|
|
{id: 19, name: 'Magma'},
|
|
|
|
{id: 20, name: 'Tornado'}
|
2016-04-09 00:18:37 -04:00
|
|
|
];
|
|
|
|
return {heroes};
|
|
|
|
}
|
|
|
|
}
|