Last active
May 20, 2022 15:12
-
-
Save NyaGarcia/30249fdad5bd84e0a4c381e89a727ed0 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
<div class="container"> | |
<div class="header"> | |
<img src="assets/NgPokedex.png" /> | |
</div> | |
<div class="content"> | |
<div class="list"> | |
<div class="list-header"> | |
<h3>List of Pokemon</h3> | |
<button mat-raised-button color="primary" (click)="addPokemon()"> | |
Add Pokemon | |
</button> | |
</div> | |
<app-list | |
[pokemon$]="allPokemon$" | |
(pokemonEmitter)="selectPokemon($event)" | |
></app-list> | |
</div> | |
<app-detail | |
[pokemon]="selectedPokemon" | |
*ngIf="selectedPokemon" | |
(deletePokemon)="deletePokemon()" | |
(updatePokemon)="updatePokemon()" | |
></app-detail> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment