Skip to content

Instantly share code, notes, and snippets.

@bmarini
Created November 7, 2013 23:45
Show Gist options
  • Save bmarini/7363851 to your computer and use it in GitHub Desktop.
Save bmarini/7363851 to your computer and use it in GitHub Desktop.
ui router logging...
App.run ($rootScope, $filter, $log) ->
$rootScope.$on( '$stateChangeStart', (ev, to, toParams, from, fromParams) ->
$log.info('state change from ', from.name, $filter('json')(fromParams), ' to ', to.name, $filter('json')(toParams))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment