Is it possible to dynamically change the ng-click function of a button based on user interaction?
For example, can we toggle between two functions using something similar to toggling classes: ng-class: "functionToggle? 'disabled': 'enabled'"
In this case, when the value is a function like in the following example: ng-click="funnyFunction()"
I am looking to call funnyFunction() if the user selects certain options in a form and seriousFunction() if different ones are selected. Ideally, I would like to achieve this by using the same button but changing the function that is called based on user interaction.