All:
I have a function that is activated by an ng-click event. I want this function to wait on another ng-click event. The idea is to choose an action, and then choose a target for that action (via clickable objects in the DOM).
I'm not sure how to accomplish this. I know that I can use an Angular deferred event (using Q). However, how can I capture an ng-click event inside my original function without having to hold a reference to the deferred object within my scope?
Edit: The reason I'd like to design it this way is because I don't want my "targets" to perform any action on ng-click unless an action has been clicked; targets should only be selectable after an action has been selected.