You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
498 B
14 lines
498 B
<p>Un formulaire template-driven avec affichage en console</p>
|
|
|
|
<form #bookForm="ngForm" (ngSubmit)="onSubmit()">
|
|
<div>
|
|
<label for="title">Titre</label>
|
|
<input type="text" id="title" name="title" [(ngModel)]="book.title" required />
|
|
<div>
|
|
</div>
|
|
<label for="author">Nom</label>
|
|
<input type="text" id="author" name="author" [(ngModel)]="book.author" required />
|
|
</div>
|
|
<input type="submit" [disabled]="bookForm.invalid" value="ENVOYER" />
|
|
</form>
|