Populating selectmenu in dynamic form

Hi, Can someone please give me an idea about this:

I used this dynamic form https://angular.io/docs/ts/latest/cookbook/dynamic-form.html


I have 2 selectmenu
The options of second selectmenu will be based on the selected value of first selectmenu
How can I populate the second ion-select?

Thank you.

Presumably the options of the second menu are being generated by iterating over some array in the component using ngFor. You can bind to the (ionChange) event in the first menu and in that listener change the array that backs the second menu.