Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Created May 20, 2022 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NyaGarcia/db904237991ef4348c92d072f41fc47d to your computer and use it in GitHub Desktop.
Save NyaGarcia/db904237991ef4348c92d072f41fc47d to your computer and use it in GitHub Desktop.
<div class="detail">
<h2>{{ pokemon.name }}</h2>
<h4>{{ pokemon.type }} type</h4>
<div class="content">
<img [src]="pokemon.imgUrl" />
<div>
<p>Height: {{ pokemon.height }}</p>
<p>Weight: {{ pokemon.weight }}</p>
<p>
{{ pokemon.description }}
</p>
</div>
</div>
<div>
<button (click)="update()" mat-raised-button color="primary">Edit</button>
<button (click)="delete()" mat-raised-button color="warn">Delete</button>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment