Skip to content

Instantly share code, notes, and snippets.

@Ruivilela
Last active December 28, 2016 13:47
Show Gist options
  • Save Ruivilela/343787843b935eb94bf4d3db39510130 to your computer and use it in GitHub Desktop.
Save Ruivilela/343787843b935eb94bf4d3db39510130 to your computer and use it in GitHub Desktop.
getPokemon(index:number){
return this.http.get(`${this.baseUrl}${index}`)
.subscribe(
res => {return res.json().results}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment