Created
November 21, 2017 16:26
-
-
Save elvinmeza/7e59d60edf10b9e58bd700dc1851d16e to your computer and use it in GitHub Desktop.
Fake data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { InMemoryDbService } from 'angular-in-memory-web-api'; | |
export class InMemoryDataService implements InMemoryDbService { | |
createDb() { | |
const rockBands = [ | |
{ id: 1, name: 'The Beatles' }, | |
{ id: 2, name: 'Led Zeppelin' }, | |
{ id: 3, name: 'Pink Floyd' }, | |
{ id: 4, name: 'The Rolling Stones' }, | |
{ id: 5, name: 'Queen' }, | |
{ id: 6, name: 'The Who' }, | |
{ id: 7, name: 'AC/DC' }, | |
{ id: 8, name: 'Jimi Hendrix' }, | |
{ id: 9, name: 'The Doors' }, | |
{ id: 10, name: 'Nirvana' } | |
]; | |
return {rockBands}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment