Created
November 12, 2020 00:22
-
-
Save jullle3/00efed47dbcaa485f07e51468ecb59fd to your computer and use it in GitHub Desktop.
tmp2
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 (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