How to set individual option list for selects in a formbuilder
问题 I have a model driven form with 2 selects, 'State' and 'City'. The models looks something as below : class State{ stateID : number; stateName : String, cities : City[] } class City{ cityID : number, cityName : String } I am populating the city option list from the selection of state as I have all the data available in State[] 'stateList'. <select formControlName="state" (onchange)="getCityNameByState($event.target.value)"> <option *ngFor="let stateName of stateList" [value]= "stateID"> {