Skip to content
This repository has been archived by the owner on Sep 20, 2020. It is now read-only.

$stickyState can't access root state if no states are defined. #36

Closed
christopherthielen opened this issue Jul 30, 2014 · 0 comments
Closed
Assignees
Milestone

Comments

@christopherthielen
Copy link
Owner

Per the comments in stickyState.js:94, we need access to the internal representation of the root state. Since the mechanism used to access the root state is to decorate the .parent() state function, at least one state must be defined at config time.

I have figured out an easier way to access the root state. In $provide.decorate, the internal representation of the root state is accessible as $state.$current.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant