Question
Switching the click function of a button
I'm trying to switch the function of a button after click. In effect making the button toggle between, hiding and showing a number of widgets.
I tried setting the click function of the button to a function:
tutorialShow();
And within that function is a line:
$scope.setWidgetProp(button-1,'click', tutorialHide());
It's not working currently, how do I fix this code, or is there another method of achieving this?

