axel-zarate/js-custom-select

How add ng-change event

Closed this issue · 3 comments

Thank you your Good work
Hello how to add ng-change event

your product very nice i just add ng-change="some_function(model)"
it is work thank you

You can also provide an onSelect callback function in the options you pass to the directive.
In your controller:

$scope.options = {
    onSelect: function (item) {
        // handle
    }
};

And in you view:

<div custom-select="options" ng-model="..." ng-options="..."></div>

Thank you