Created
July 16, 2018 23:59
-
-
Save ZackDeRose/705f32ac209de56e4bd0e484a3daa3e7 to your computer and use it in GitHub Desktop.
Snippet for Initializing tableDataSource$ for "Angular CDK Tables" article
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
ngOnInit() { | |
this.heroes$.subscribe(changedHeroData => { | |
this.tableDataSource$.next(Object.values(changedHeroData)); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment