ng-pokemon-app/src/app/pokemon/list-pokemon/list-pokemon.component.html

38 lines
986 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="container">
<div class="row">
<div
*ngFor="let pokemon of pokemonList"
class="col m4 s6"
(click)="goToPokemon(pokemon)"
>
<div class="card horizontal" pkmnBorderCard>
<div class="card-image">
<img [alt]="pokemon.name" [src]="pokemon.picture" />
</div>
<div class="card-stacked">
<div class="card-content">
<p>
{{ pokemon.name }}
</p>
<p>
<small>{{ pokemon.created | date : "yyyy-MM-dd" }}</small>
</p>
<span
*ngFor="let type of pokemon.types"
class="{{ type | pokemonTypeColor }}"
>
{{ type }}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<a
class="btn-floating btn-large waves-effect waves-ligth red z-depth-3"
style="position: fixed; bottom: 25px; right: 25px"
routerLink="/pokemon/add"
></a
>