Created
August 9, 2019 11:48
-
-
Save saimon24/088a4a5cf0a0a950b7104cf7158e50dc 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
<ion-header> | |
<ion-toolbar color="primary"> | |
<ion-buttons slot="start"> | |
<ion-back-button defaultHref="home"></ion-back-button> | |
</ion-buttons> | |
<ion-title class="ion-text-capitalize">{{ details?.name }}</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content> | |
<div *ngIf="details"> | |
<ion-slides pager="true" [options]="slideOpts"> | |
<ion-slide *ngFor="let sprite of details.images"> | |
<img [src]="sprite" style="height: 250px;"> | |
</ion-slide> | |
</ion-slides> | |
<ion-card> | |
<ion-card-header> | |
<ion-card-title class="ion-text-capitalize">#{{ details.id }} {{ details.name }} | |
<ion-chip color="primary" *ngFor="let t of details.types"> | |
<ion-label>{{ t.type.name }}</ion-label> | |
</ion-chip> | |
</ion-card-title> | |
<ion-card-subtitle class="ion-text-capitalize">{{ details.weight }} lbs</ion-card-subtitle> | |
</ion-card-header> | |
<ion-card-content> | |
<ion-list lines="full"> | |
<ion-item> | |
<ion-label text-wrap><b>Abilities:</b> <span *ngFor="let a of details.abilities; let isLast = last" | |
class="ion-text-capitalize"> | |
{{ a.ability.name }}{{ !isLast ? ',' : '' }} | |
</span></ion-label> | |
</ion-item> | |
<ion-item *ngFor="let s of details.stats" class="ion-text-capitalize"> | |
<ion-label slot="start"><b>{{ s.stat.name }}:</b></ion-label> | |
<ion-label slot="end"> | |
{{ s.base_stat }} | |
</ion-label> | |
</ion-item> | |
</ion-list> | |
</ion-card-content> | |
</ion-card> | |
</div> | |
</ion-content> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment