Well, I've tried to create my solution based on your examples but couldn't get working code. Hope, you can help me out. I am going after the siblings example.
Here is relative code:
index.html
....
<li><a sref="first"> Reports</a></li>
.....
<div>
<div ui-view="upper"></div>
<div ui-view="lower"></div>
</div>
app.js
app.config(function ($stateProvider, $urlRouterProvider) {
$stateProvider
.state('first', {
url: '',
views: {
upper: {
templateUrl: 'app/views/first.html'
},
lower: {
templateUrl: 'app/views/second.html'
}
}
})
});
when I load index.html I get both pages loaded. But what I want is to load these two pages when I click on a list. Can you please help?
Thanks