×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Jun 12, 2017 9:47 AM
Views: 4
Tags: no tags
  1. app.run('$rootScope',function($rootScope) {
  2.  
  3.         $rootScope.$on('$stateChangeStart',function(e, toState, toParams, fromState, fromParams, options) {
  4.                 console.log('in $stateChangeStart');
  5.                 console.log(toState);
  6.                 console.log(fromState);
  7.         })
  8.  
  9. })