diff --git a/src/multiselect.js b/src/multiselect.js index a4a4dde..4dd62df 100644 --- a/src/multiselect.js +++ b/src/multiselect.js @@ -84,6 +84,13 @@ } }; + // Update selection options if data changes + $scope.$watch('options', function(newVal) { + $scope.options = newVal; + $scope.resolvedOptions = newVal; + updateSelectionLists(); + }, true); + $ngModelCtrl.$render = function () { updateSelectionLists(); };