Pokemon Pals
Exercise requirements
You will have two routes
/pokemon
/pokemon/details
The first route will make an http request to get a pokedex (http://pokeapi.co/api/v1/pokedex/{some-id}/
).
You will list each pokemon by name.
Next to each pokemon will be a "details" button. When this button is pressed you will use the $location
service to route to pokemon/details
where you will use the pokemon's resource_uri
property to make a request to get the pokemon details.
pokemon/details will show the following details about the selected pokemon:
- Sprite (this will require another api request)
- Name
- Attack
- Defense
Hint:
You will most likely use a service to store the selected pokemon's info to share between controllers.