File

src/app/app-poll/app-poll-result.data.ts

Implements

InMemoryDbService

Index

Methods

Methods

createDb
createDb()
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};
    }
}

result-matching ""

    No results matching ""