Skip to content Skip to sidebar Skip to footer

Get Parent State From Ui-router $statechangestart

I want to access the name of the parent state when detecting a statechange. My code so far: app.run(function($rootScope, $state, authProvider) { $rootScope.$on('$stateChangeSta

Solution 1:

I think you can do toState.parent.name.


Post a Comment for "Get Parent State From Ui-router $statechangestart"