-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(StateRegistry): Add
deregister
method.
- Loading branch information
1 parent
e7bedc2
commit 44579ec
Showing
5 changed files
with
319 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
44579ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @christopherthielen , I'm new here. Sorry if it sounds very basic. I'm using angular-ui-router v1.0.0-rc.1. I'm not sure how to use the deregister function. Can you mention its usage?
44579ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@StevieSun docs are here: https://ui-router.github.io/ng1/docs/latest/classes/state.stateregistry.html#deregister
You need to access the state registry. In AngularJS (ng1), either inject
$stateRegistry
, or inject$uiRouter
then access via$uiRouter.stateRegistry
44579ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@christopherthielen Thank you so much for the quick response.