Created
September 27, 2019 06:27
-
-
Save dujo-stack/e4eb44979a3082036495d24979c8c4e4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<form [formGroup]="articleForm" (ngSubmit)="onSubmit()"> | |
<div class="input-field col s12"> | |
<input id="title" formControlName="title" type="text"> | |
<label for="title" class="active">Titulo</label> | |
</div> | |
<div class="input-field col s12"> | |
<textarea id="body" formControlName="body" class="materialize-textarea"></textarea> | |
<label for="body">Agregar el contenido</label> | |
</div> | |
<p>Form value: {{ articleForm.value | json }}</p> | |
<button type="submit" >Guardar</button> | |
</form> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment