Created
November 9, 2020 08:36
-
-
Save nivrith/b04dbe3fe30163ba625e50ed41d6ca70 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
| <ng-container *ngIf="formArray$ | async as formArray; else loading"> | |
| <form> | |
| <ng-container *ngFor="let formGroup of formArray.controls"> | |
| <div [formGroup]="formGroup"> | |
| <div class="form-group"> | |
| <label for="">Title</label> | |
| <input class="form-control" type="text" formControlName="title" /> | |
| </div> | |
| <div class="form-group"> | |
| <label for="exampleFormControlSelect2">Body</label> | |
| <textarea | |
| class="form-control" | |
| formControlName="text" | |
| placeholder="Enter Post Text" | |
| rows="4" | |
| ></textarea> | |
| </div> | |
| </div> | |
| </ng-container> | |
| <div class="d-flex justify-content-between"> | |
| <button | |
| (click)="onConfirm(form)" | |
| role="none" | |
| class="btn btn-primary" | |
| > | |
| Save | |
| </button> | |
| </div> | |
| </form> | |
| </ng-container> | |
| <ng-template #loading>...loading</ng-template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment