Angular - Change button funcionality
I'm using Optimizely and is working pretty fine; now I have to make a test changing a button functionality, this buttons have a ng-click that trigger a function on my controller, this function use some extra params on the current scope, what I want to do is change this functionality (using Optimizely) to open a $modal.
I was trying to access to my controller but I couldnt overwrite the current functionality using Optimizely.
Is there a way to do this without creating 2 buttons? (first with current functionality and the other one with the modal functionality)
Have you also tried changing the "ng-click" attribute value of the button to a known value that opens up the modal?