Fin section 14 et 15 : programmation réactive et requêtes HTTP

This commit is contained in:
2023-02-27 14:23:58 +01:00
parent a789a10203
commit 108c2b17a7
15 changed files with 194 additions and 19 deletions

View File

@@ -24,6 +24,27 @@
</div>
</div>
<!-- Pokemon picture -->
<div *ngIf="isAddForm" class="form-group">
<label for="name">Image</label>
<input
type="url"
class="form-control"
id="picture"
required
[(ngModel)]="pokemon.picture"
name="picture"
#picture="ngModel"
/>
<div
[hidden]="picture.valid || picture.pristine"
class="card-panel red accent-1"
>
Limage du pokémon est requise.
</div>
</div>
<!-- Pokemon hp -->
<div class="form-group">
<label for="hp">Point de vie</label>