Last active
January 6, 2017 15:03
-
-
Save Ruivilela/99d91b804cd3732053cfe28c2051f8dc 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
| @Injectable() | |
| export class PokedexService { | |
| private baseUrl: string ='https://pokeapi.co/api/v2/'; | |
| constructor(private http: Http) { } | |
| getPokemon(index:number) { | |
| return this.http.get(`${this.baseUrl}pokemon/${index}`) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment