Answer the question
In order to leave comments, you need to log in
How to make nested views?
Good day. There are 2 ui-views. One of which is nested.
Can you please tell me how to correctly write .state in order to work correctly only with ui-view="nested"? Thanks
<div data-ui-view="main" id="page-container">
<!-- Side Overlay-->
<aside ></aside>
<!-- Sidebar -->
<nav ></nav>
<!-- Header -->
<header ></header>
<!-- Main Container -->
<main id="main-container" data-autoscroll="true" data-ui-view="nested"></main>
<!-- Footer -->
<footer></footer>
</div>
Answer the question
In order to leave comments, you need to log in
views: {
'@nested': {
templateUrl: 'nested-view.html'
}
}
views: {
'[email protected]': {
templateUrl: 'nested-view.html'
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question