0.0.1 • Published 11 years ago
angular-off v0.0.1
angular-off
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');
};
});
0.0.1
11 years ago