Answers for "Preselecting options select2 angularjs"

0

Preselecting options select2 angularjs

<select ui-select2 ng-model="testModel" multiple style="width:200px">
   <option value="{{item.id}}" ng-repeat="item in items">{{item.text}}</option>
</select>

$scope.testModel = [3];
Posted by: Guest on March-02-2022

Code answers related to "Preselecting options select2 angularjs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language