Created
April 12, 2018 17:36
-
-
Save cyrilletuzi/28b7de793875a6a53fe5138acff424f0 to your computer and use it in GitHub Desktop.
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
@Component({ | |
template: `<p>{{data$ | async}}</p>` | |
}) | |
export class SomeComponent { | |
data$ = this.dataService.getData(); | |
constructor(protected dataService: DataService) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment