title: How can I don't trigger $stateChangeStart in angular?
body: <p>If I write like this:</p>
  
  <pre><code> $scope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {
      if ($scope.isChanged) {
          myShowOkCancelDialog(NotifyType.Warn, 'do you want leave?', function (ok) {
              if (ok) {
                  $state.go(toState, toParams);
              }
          })
          event.preventDefault();
      }
  });
  </code></pre>
  
  <p>it will be always asking ok or cancel, and i don't want to use <code>$window.confirm</code>:</p>
  
  <pre><code>$scope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {
      if ($scope.isChanged) {
          var isjump = confirm('do you want leave?');
          if (!isjump) {
              event.preventDefault();
          }
      }
  });
  </code></pre>