Created
June 30, 2013 11:08
-
-
Save royts/5894780 to your computer and use it in GitHub Desktop.
Small changes in @simpulton chosen.js deirective for AngularJS (https://github.com/simpulton/angular-chosen)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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