Created
November 25, 2019 21:45
-
-
Save parzibyte/bf731d41ba5b5d49a7b1d54f0b1402ce to your computer and use it in GitHub Desktop.
This file contains 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
<h2>Agregar mascota <mat-icon>pets</mat-icon></h2> | |
<form (ngSubmit)="onSubmit()" #formMascota="ngForm"> | |
<p> | |
<mat-form-field> | |
<input matInput name="nombre" [(ngModel)]="mascotaModel.nombre" | |
type="text" | |
placeholder="Nombre"> | |
</mat-form-field> | |
</p> | |
<p> | |
<mat-form-field> | |
<input matInput name="raza" [(ngModel)]="mascotaModel.raza" | |
type="text" | |
placeholder="Raza"> | |
</mat-form-field> | |
</p> | |
<p> | |
<mat-form-field> | |
<input matInput name="edad" [(ngModel)]="mascotaModel.edad" | |
type="number" | |
placeholder="Edad"> | |
</mat-form-field> | |
</p> | |
<p> | |
<button type="submit" mat-flat-button color="accent">Guardar</button> | |
</p> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment