Fin section 14 et 15 : programmation réactive et requêtes HTTP
This commit is contained in:
@@ -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"
|
||||
>
|
||||
L’image du pokémon est requise.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Pokemon hp -->
|
||||
<div class="form-group">
|
||||
<label for="hp">Point de vie</label>
|
||||
|
||||
Reference in New Issue
Block a user