duck-booking-tool-front/app/in-memory-data.service.ts

14 lines
327 B
TypeScript
Raw Normal View History

import { InMemoryDbService } from "angular2-in-memory-web-api";
export class InMemoryDataService implements InMemoryDbService {
createDb() {
let ducks = [
{ id: 1, color: 'yellow' },
{ id: 2, color: 'blue' },
{ id: 3, color: 'pink' }
];
return {ducks};
}
}