Created
November 25, 2019 19:10
-
-
Save parzibyte/fb6b2067e2bde426a44b3bf7113a7884 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
<h1>Registrar mascota</h1> | |
<a href="//parzibyte.me/blog">By Parzibyte</a> | |
<br><br> | |
<form #formularioMascota="ngForm" (ngSubmit)="formularioEnviado()"> | |
<input type="text" name="nombre" placeholder="Nombre de mascota" [(ngModel)]="mascotaModel.nombre"> | |
<br><br> | |
<input type="text" name="raza" placeholder="Raza de mascota" [(ngModel)]="mascotaModel.raza"> | |
<br><br> | |
<input type="number" name="edad" placeholder="Edad de mascota" [(ngModel)]="mascotaModel.edad"> | |
<br><br> | |
<button type="submit">Guardar</button> | |
</form> | |
<h2>Depurando mascota:</h2> | |
{{ mascotaModel | json }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment