duck-booking-tool-front/app/in-memory-data.service.ts
2016-10-28 07:44:36 +02:00

35 lines
727 B
TypeScript

import { InMemoryDbService } from "angular-in-memory-web-api";
export class InMemoryDuckService implements InMemoryDbService {
createDb() {
let ducks = [
{
id: 1,
name: "Fastfingers",
color: "#ee6aa7"
},
{
id: 2,
name: "Lady Pickett",
color: "#8b8b00"
}
];
return {ducks};
}
}
export class InMemoryUserService implements InMemoryDbService {
createDb() {
let users = [
{
id: 1,
username: 'epolger',
password: 'epolger'
}
];
return {users};
}
}