Last active
November 25, 2019 22:52
-
-
Save parzibyte/189c30e30de333c56772220477167815 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>Editar mascota <mat-icon>pets</mat-icon></h2> | |
<form (ngSubmit)="onSubmit()" #formMascota="ngForm"> | |
<p> | |
<mat-form-field> | |
<input matInput name="nombre" [(ngModel)]="mascota.nombre" | |
type="text" | |
placeholder="Nombre"> | |
</mat-form-field> | |
</p> | |
<p> | |
<mat-form-field> | |
<input matInput name="raza" [(ngModel)]="mascota.raza" | |
type="text" | |
placeholder="Raza"> | |
</mat-form-field> | |
</p> | |
<p> | |
<mat-form-field> | |
<input matInput name="edad" [(ngModel)]="mascota.edad" | |
type="number" | |
placeholder="Edad"> | |
</mat-form-field> | |
</p> | |
<p> | |
<button type="submit" mat-flat-button color="accent">Guardar</button> | |
| |
<button (click)="volver()" type="button" mat-flat-button color="primary">Volver</button> | |
</p> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment