I am arriving on bookDetails
state form some other link. Here bookDetails
state\'s template has links for different tabs
(or templates). A
From Directing the user to a child state when they are transitioning to its parent state using UI-Router:
Either change the bookDetails.basic
state to:
.state('bookDetails.basic', {
url : '',
templateUrl: '/static/publisher/views/tab1.html'
})
Or add the following routing:
$urlRouterProvider.when('/books/{b_id}', '/books/{b_id}/basic');