title: angularjs: preventing route changes
body: <p>I've tried doing the following in my controller:</p>
  
  <pre><code>  $scope.$on("$routeChangeStart", function (event, next, current) {
         if (!confirm('are you sure ?')) {
           event.preventDefault();           
         }
    });
  </code></pre>
  
  <p>But it doesn't work. Is that not supposed to be the way to do it ? </p>