Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
getHeroes.ts
getHeroes(): void {
this.heroService.getHeroes()
.subscribe(heroes => this.heroes = heroes);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment