Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

angular-off

0.0.1 • Public • Published

angular-off Build Status

angular.module('controllers', [])
  .controller('MainCtrl', function() {
 
    $scope.$on('$routeChangeError', function(event, current, prevous, rejection) {
      alert('Filed to change routes!');
    });
 
    $scope.button = function() {
     $scope.$off('$routeChangeError');
    };
 
  });
 

Keywords

none

install

npm i angular-off

Downloadsweekly downloads

0

version

0.0.1

license

none

last publish

collaborators

  • avatar