Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ngOnInit() {
this.example = this.route.params
.switchMap(params => this.exampleService.getExample(params.id));
}
<div>{{ (example | async).?name }}</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment