Hi I want to know is there is a way to stop a ng-change function from been executed programatically.
I am building a search suggestions feature that calls an API using ng-change
(passing the input, send it to a service
, then back to the controller
with the model created). But If the user decides, she/he can click a button to disable the feature. As far as I know, I can make stop the API calls, but not the event itself from being fired.
Any suggestions are more than welcome.