The code is like this: The page displays like this:
The console view element is like this:
One more loop. What is the reason for this cycle? Is there any good solution? angular version 1.4.5
Solved it myself: Added:
<option value="">选择</option>
Why use ng-repeate when you can use ng-options. If you use ng-options, remember to write a default please select the item.
When you get the data for the first time, can you display all the data?
Solved it myself:
Added:
Why use ng-repeate when you can use ng-options. If you use ng-options, remember to write a default please select the item.
When you get the data for the first time, can you display all the data?