Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upMix named views with ui-view #991
Closed
Comments
|
It is possible, but you can't mix top-level view configuration with a Per the readme, please direct further support questions to StackOverflow. Thanks. |
|
Thanks for the answer, my working result : $stateProvider
.state('admin', {
abstract: true,
url: '/admin',
views: {
'': {
templateUrl: 'app/admin/admin.tpl.html'
},
'menu@admin': {
templateUrl: 'app/admin/menu.tpl.html'
},
'sidebar@admin': {
templateUrl: 'app/admin/sidebar.tpl.html'
}
}
})
.state('admin.home', {
url: '',
templateUrl: 'app/admin/home/admin-home-index.tpl.html'
}); |
|
Any chance a StackOverflow post was created based on this? I'd upvote that straight away. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I want to mix named views with a "anonymous" ui-view like this :
My issue is that all the partials are loaded but they aren't displayed inside my index.tpl.html file.
Is it possible to mix named views with "anonymous" ui-view ?