Last active
July 16, 2018 23:19
-
-
Save ZackDeRose/8d4af3f60cfc2949d82be1445531192e to your computer and use it in GitHub Desktop.
Snippet of table.component.ts for "Angular CDK Tables"
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
tableDataSource$ = new BehaviorSubject<any[]>([ | |
{ | |
name: 'Hammerer Maccabeus', | |
types: 'Holy/Fire', | |
attack: 1, | |
defense: 1, | |
speed: 1, | |
healing: 1, | |
recovery: 1, | |
health: 5 | |
}, | |
{ | |
name: 'Ethereal Moodmorph', | |
types: 'Water/Fire', | |
attack: 1, | |
defense: 1, | |
speed: 1, | |
healing: 1, | |
recovery: 1, | |
health: 5 | |
}, | |
]); | |
displayedColumns$ = new BehaviorSubject<string[]>([ | |
'name', | |
'types', | |
'attack', | |
'defense', | |
'speed', | |
'healing', | |
'recovery', | |
'health' | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment