Skip to content

Instantly share code, notes, and snippets.

@royts
Created Jun 30, 2013
Embed
What would you like to do?
Small changes in @simpulton chosen.js deirective for AngularJS (https://github.com/simpulton/angular-chosen)
module.directive('angularChosen', function () {
return {
restrict: 'A',
require: '?ngModel',
link: function (scope, element, attrs) {
scope.$watch(attrs.ngModel, function () {
element.trigger('liszt:updated');
});
element.chosen();
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment