angular-bootstrap-multiselect
angular-bootstrap-multiselect copied to clipboard
How to set defalut value when i used $timeout
Hi,
my code first
<multiselect ng-model="selectedObject" options="searchObjects" class="search-object" show-search="false" show-select-all="true" show-unselect-all="true" ></multiselect>
`
$timeout(function () {
resolve(value.SearchObjects);
$scope.searchObjects = ["one","two"];
$scope.selectedObject = ["one","two"];
}, 100);` the problem is that page would not show up how many options i selected before i click the multiselect. did i doing something wrong? and how to show up the default value when the page loaded.
@Bloom2036 Did you figure this out? I am having a similar issue loading options after a timeout.
+1 wth a HTTP request
I am getting the same issue. I have set the initial value to the model on page load. But it is not showing selected values. It only shows when i click on it.