in angularjs i have a ui-select
:
<ui-select ng-model="itemSelected.selected" theme="selectize" ng-disabled="disabled">
<ui-select-match placeholder="Select an item...">{{$select.selected.Name}}</ui-select-match>
<ui-select-choices repeat="item in itemsList">
<span ng-bind-html="item.Name"></span>
</ui-select-choices>
</ui-select>
How can i select an item from code when i load the page?
When i load the page in the controller i get the $scope.itemsList
: how can i select a specific item from the controller
?
Thanks