Created
May 4, 2013 19:07
-
-
Save benschw/5518413 to your computer and use it in GitHub Desktop.
Target views relatively or absolutely with AngularJS ui-router
This file contains hidden or 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
$stateProvider | |
.state('contacts.detail', { | |
views: { | |
// relatively targets the "info" view in "contacts.detail" state: | |
"info" : { /* ... */ } | |
// relatively targets the unnamed view in "contacts.detail" state: | |
"" : { /* ... */ } | |
// absolutely targets the "detail" view in parent "contacts" state: | |
"detail@contacts" : { /* ... */ } | |
// absolutely targets the unnamed view in parent "contacts" state: | |
"@contacts" : { /* ... */ } | |
// absolutely targets the "status" view in root unnamed state: | |
"status@" : { /* ... */ } | |
// absolutely targets the unnamed view in root unnamed state: | |
"@" : { /* ... */ } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment