I don’t quite understand what effect you want. Here is a selection method. Take a look. Angular is a two-way binding. If you directly update the array of the drop-down list, the drop-down list will be displayed. As for displaying the selected item, it seems that a default value is enough. Give it a try. I forgot about it after a long time.
I don’t quite understand what effect you want. Here is a selection method. Take a look. Angular is a two-way binding. If you directly update the array of the drop-down list, the drop-down list will be displayed. As for displaying the selected item, it seems that a default value is enough. Give it a try. I forgot about it after a long time.