Created
April 17, 2024 13:59
-
-
Save zzpzaf/74ecc639a1ad9253024aeb5ab8c68f51 to your computer and use it in GitHub Desktop.
dynamicform1_select.component.html_02
This file contains 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
<!-- <p>select works!</p> --> | |
<mat-form-field> | |
<div [formGroup]="fGroup"> | |
<div class="form-field"> | |
<mat-label>{{ field.fieldLabel }}</mat-label> | |
<mat-select | |
[formControlName]="field.controlName" | |
[id]="field.controlName" | |
[multiple]="field.multipleOptions" | |
> | |
<mat-option [value]="null" disabled>{{ field["promptText"] }}</mat-option> | |
<mat-option *ngFor="let opt of field.options" [value]="opt.optionKey"> | |
{{ opt.optionValue }} | |
</mat-option> | |
</mat-select> | |
</div> | |
</div> | |
</mat-form-field> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment