I have a relatively simple UI-Router set up, except that the navigation that changes states is itself a ui-view.
Main HTML:
<header class="container__header">
<nav class="container__header__tabs" ui-view="nav"></nav>
</header>
Nav HTML:
<ul>
<li class="nav-link active"><a ui-sref="/">all funds</a></li>
<li class="nav-link"><a ui-sref=".something">something</a></li>
</ul>
The problem is that the .something link can't change state views on click.
My AngularJS config:
.state('home.something', {
url: '/',
views: {
'nav': {templateUrl: 'templates/navs/explorer-nav.html'},
'main': {templateUrl: 'templates/fund explorer/fund_explorer_all.html'}
}
});
This doesn't change the view templates (though the URL does change). Any ideas?
home.something? - Artless