Skip to content

Instantly share code, notes, and snippets.

@cyrilletuzi
Created April 12, 2018 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyrilletuzi/28b7de793875a6a53fe5138acff424f0 to your computer and use it in GitHub Desktop.
Save cyrilletuzi/28b7de793875a6a53fe5138acff424f0 to your computer and use it in GitHub Desktop.
@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