title: Prevent ng-click from firing for confirmation dialog (stopped working in Angular 1.2 RC3)
body: <p>I'm using this script to have a confirmation dialog before actually firing the ng-click function</p>
  
  <pre><code>Directives.directive('ngConfirmClick', [
    function(){
      return {
        priority: 100,
        restrict: 'A',
        link: function(scope, element, attrs){
          element.bind('click', function(e){
            var message = attrs.ngConfirmClick;
            if(message &amp;&amp; !confirm(message)){
              e.stopImmediatePropagation();
              e.preventDefault();
            }
          });
        }
      }
    }
  ]);
  </code></pre>
  
  <p>as seen on
  <a href="http://zachsnow.com/#!/blog/2013/confirming-ng-click/" rel="nofollow">http://zachsnow.com/#!/blog/2013/confirming-ng-click/</a></p>
  
  <p>it's used via:</p>
  
  <pre><code>&lt;button ng-confirm-click="Are you sure?" ng-click="remove()"&gt;Remove&lt;/button&gt;
  </code></pre>
  
  <p>There are other similar scripts here on SO, but <strong>since i updated to Angular 1.2 RC3 they stopped working</strong>. The ng-click function is always fired BEFORE the actual link function is stepped into.</p>
  
  <p>I also tried to increase <em>priority</em> and to listen to other events(touchstart, because the newest angular has this new ngtouch directives). But nothing works.</p>