Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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>
Source by www.positronx.io #
 
PREVIOUS NEXT
Tagged: #select #option #reactive #forms
ADD COMMENT
Topic
Name
3+2 =