Answers for "ng-select with reactive forms"

2

select option in reactive forms

<select class="custom-select" (change)="changeCity($event)" formControlName="cityName">
   <option value="" disabled>Choose your city</option>
   <option *ngFor="let city of City" [ngValue]="city">{{city}}</option>
</select>
Posted by: Guest on March-23-2021
1

ngfor select angular

<select [(ngModel)]="passenger.Title">
    <option *ngFor="let title of titleArray" [value]="title.Value">
      {{title.Text}}
    </option>
</select>
Posted by: Guest on April-29-2020

Code answers related to "ng-select with reactive forms"

Code answers related to "Javascript"

Browse Popular Code Answers by Language