src/app/app-poll/app-poll-result.data.ts
InMemoryDbService
Methods |
createDb |
createDb()
|
Defined in src/app/app-poll/app-poll-result.data.ts:5
|
Returns :
{ pollResult: {}; }
|
import { InMemoryDbService } from 'angular-in-memory-web-api';
import { AppPoll } from './app-poll';
export class AppPollResultData implements InMemoryDbService{
createDb() {
const pollResult = [
{ "id": 5,
"votesCount":0,
"options": [
{
"id": 13,
"count": 0
},
{
"id": 14,
"count": 0
}]
}
]
return {pollResult};
}
}