indrimuska / angular-selector

A native AngularJS directive that transform a simple <select> box into a full html select with typeahead.
http://indrimuska.github.io/angular-selector
MIT License
96 stars 36 forks source link

Doesn't two-binding for ng-model #44

Closed Seryal85 closed 8 years ago

Seryal85 commented 8 years ago

I have remote service 1 that it'is loading values for select (here - it's all OK) and I have other service 2 that it's loading value for model (when I set new value from service 2 for model then two-binding doesn't work - I have old value on view, but new value in model)

Seryal85 commented 8 years ago

I resolved by adding to service 2 such construction $scope.$$childHead.setValue({value : $scope.month}); $scope.$$childHead.updateSelected();