Created
July 25, 2013 20:23
-
-
Save davidpp/6083400 to your computer and use it in GitHub Desktop.
Log to console each transition change (useful to intercept a state before it change)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('SkylineApp').run(function($rootScope) { | |
return $rootScope.$on("$stateChangeStart", function(evt, toState, toParams, fromState, fromParams) { | |
return console.log("Transitioning from: " + fromState.name + " to: " + toState.name); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment