on the friend-info
and discovery-friend-info
tab ,each tab have to open the FriendInfoCtrl
, but now I should write the route twice for the different tab .
Is there a best solution to write this route more convenience?
.state('tab.friend-info', {
url: '/friendInfo/:userId',
views: {
'tab-friends': {
templateUrl: 'templates/friend/info.html',
controller: 'FriendInfoCtrl'
}
}
})
.state('tab.discovery-friend-info',{
url: '/discovery/friendInfo/:userId',
views: {
'tab-discovery': {
templateUrl: 'templates/friend/info.html',
controller: 'FriendInfoCtrl'
}
}
})