Skip to content

Instantly share code, notes, and snippets.

@jullle3
Created November 12, 2020 00:22
Show Gist options
  • Save jullle3/00efed47dbcaa485f07e51468ecb59fd to your computer and use it in GitHub Desktop.
Save jullle3/00efed47dbcaa485f07e51468ecb59fd to your computer and use it in GitHub Desktop.
tmp2
<form (ngSubmit)="onSubmit(f)" #f="ngForm">
<label for="name">Name</label>
<input type="text" id="name" name="name" ngModel>
<br>
<label for="type">Type</label>
<input type="text" id="type" name="type" ngModel>
<br>
<button type="submit">Submit</button>
</form>
<hr>
<div *ngFor="let row of rows.controls">
<input type="text" placeholder="{{row.value['value']}}">
<input type="text" placeholder="{{row.value['another']}}">
<hr>
</div>
<!-- FormGroup som Caspers https://medium.com/@ramya.bala221190/very-simple-example-to-understand-angular-formarray-bca0e0030359
https://angular.io/guide/reactive-forms
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment