Last active
January 9, 2017 18:31
-
-
Save Ruivilela/2a7c0652bde0eda261bd953eaab1a0d0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| export class AppComponent { | |
| pokemon: Pokemon; | |
| constructor(private pokedexService: PokedexService) {} | |
| ngOnInit(){ | |
| this.pokedexService.getPokemon(1).subscribe( | |
| result => { this.pokemon = result } | |
| ) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment