bentorfs / angular-bootstrap-multiselect

Native angularJS custom form element
http://bentorfs.github.io/angular-bootstrap-multiselect/
MIT License
79 stars 111 forks source link

options update not working #37

Open rvandecaveye opened 7 years ago

rvandecaveye commented 7 years ago

Hi, I'm new to directives, so maybe I have made some mistakes..

I'm using your directive like this : <multiselect id="inputBus" ng-model="selection" options="bus" show-select-all="true" show-unselect-all="true" show-search="true" search-limit="3"> </multiselect>

--> For some reasons I'm updating my $scope.bus, but the directive is not watching it. And it's not updating the options of the multiset. Do you have any workaround to make it working ?

--> I'm trying to get into my main ctrl the value of the $scope.selection, in my html I can see the values with {{selection}}, but in the ctrl of the html I've a $scope.selection undefined or empty if i'm declaring it. What am I doing wrong ?

Thanks by advance. Regards, Romain.

ArturoLR commented 7 years ago

Maybe this can help you: https://github.com/bentorfs/angular-bootstrap-multiselect/pull/18