Created
March 3, 2015 22:39
-
-
Save wedgybo/9eed46b9357d8359b5df to your computer and use it in GitHub Desktop.
Configuring view hierarchy into your state config
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('tab.feeds', { | |
url: 'feeds', | |
views: { | |
'tab-feeds': { | |
templateUrl: 'features/feeds/feeds.html', | |
controller: 'FeedsCtrl' | |
} | |
} | |
}.state('tab.feeds/feed', { | |
url: 'feeds/:feed', | |
views: { | |
'tab-feeds': { | |
templateUrl: 'features/feeds/feed.html', | |
controller: 'FeedCtrl' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment