axel-zarate / js-custom-select

Custom auto-complete select box for AngularJS and Bootstrap
MIT License
68 stars 59 forks source link

How add ng-change event #1

Closed munkh-altai closed 9 years ago

munkh-altai commented 9 years ago

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

munkh-altai commented 9 years ago

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

axel-zarate commented 9 years ago

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>
munkh-altai commented 9 years ago

Thank you