Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 25, 2019 21:45
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/bf731d41ba5b5d49a7b1d54f0b1402ce to your computer and use it in GitHub Desktop.
Save parzibyte/bf731d41ba5b5d49a7b1d54f0b1402ce to your computer and use it in GitHub Desktop.
<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