is there a way to toggle the ng-click value on a button, but when the value is a function?
use something similar to toggle classes : ng-class:"funtionToggle?'disabled':'enabled'"
but when the value is a function: ng-click="funnyFunction()"
I want to execute funnyFunction() if the user select certain options in a form, and execute seriousFunction() if the user select different ones, but I need to use the same button, just change the function that will be called depending on the user interaction.