angular-bootstrap-multiselect icon indicating copy to clipboard operation
angular-bootstrap-multiselect copied to clipboard

How to set defalut value when i used $timeout

Open Bloom2036 opened this issue 8 years ago • 3 comments

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 avatar Dec 05 '16 05:12 Bloom2036

@Bloom2036 Did you figure this out? I am having a similar issue loading options after a timeout.

atentis avatar Feb 06 '17 17:02 atentis

+1 wth a HTTP request

TheMalloum avatar Feb 17 '17 15:02 TheMalloum

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.

midhunadarvin avatar Apr 09 '18 14:04 midhunadarvin