Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active November 25, 2019 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/189c30e30de333c56772220477167815 to your computer and use it in GitHub Desktop.
Save parzibyte/189c30e30de333c56772220477167815 to your computer and use it in GitHub Desktop.
<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>
&nbsp;
<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