app.config.js 158 B

12345
  1. app.run(function($rootScope, $location) {
  2. $rootScope.$on('$routeChangeSuccess', function() {
  3. $rootScope.currentMenuItem = $location.path() || '/';
  4. });
  5. });