ui-select2
ui-select2 copied to clipboard
Add default selections using "selected" attribute
It would be fantastic if the selected attribute could be used to specify default or pre-selected options like so:
<select ui-select2 ng-model="mymodel" data-placeholder="Select an item"
multiple="true">
<option value="1">One</option>
<option value="2" selected>Two</option>
<option value="3">Three</option>
</select>
Then the multiple select would initially show the selected item:

instead of:

How would you use ui-select2 to load default values in its current state?
+1.
+1