Skip to content

Instantly share code, notes, and snippets.

@duarte171183
Created September 27, 2019 06:27
Show Gist options
  • Save duarte171183/e4eb44979a3082036495d24979c8c4e4 to your computer and use it in GitHub Desktop.
Save duarte171183/e4eb44979a3082036495d24979c8c4e4 to your computer and use it in GitHub Desktop.
<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