Skip to content

Instantly share code, notes, and snippets.

@robwormald
Last active June 12, 2016 19:08
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 robwormald/06139cb8c360dadfcf0bcf74b26d7bd0 to your computer and use it in GitHub Desktop.
Save robwormald/06139cb8c360dadfcf0bcf74b26d7bd0 to your computer and use it in GitHub Desktop.
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