I have a problem. I use 2 controller in 1 navigation like this
thread
click button go to answer
Thread and Answer different controller. So, I use this in table thread (go to view answer)
<button type="button" class="btn btn-default" ui-sref="answer({id : data.item._id})"><i class="fa fa-eye"></i> View Answer</button>
But, if I clicked button answer and showing view answer. My navigation is not active again and not in navigation thread. I think the problem in nested views or nested states. But i dont understand. Can you help me ? Thanks
This is my app.config
.state({
name: 'thread',
url : '/thread',
controller: 'thread-controller',
templateUrl: 'templates/table-thread.html',
children : [
{
name: 'answer',
url : '/answer/:id',
params : {
id : null
},
controller: 'answer-controller',
templateUrl: 'templates/table-answer.html'
}
]
})