angular-select2
angular-select2 copied to clipboard
How to use select2 events?
How can I use select2 events like `select2-opening and so on
Here is solution You could add After:
$timeout(function () {
element.select2(opts);
...
});
Add (if it comes to change event):
if (angular.isFunction(opts.onChange)) {
element.on("change", function (e) {
scope.$apply(function () {
opts.onChange(e);
});
});
}
And rest of the events like this.