i am trying to pass a web address as a parameter between views in angular but it is not working.
i am using the uiRouter and have nested states.
here is the code:
.state('tab', {
url: '/tab',
abstract: true,
templateUrl: 'templates/tabs.html'
})
.state('tab.chat-detail', {
url: '/home/:url1/:url2',
views: {
'tab-home': {
templateUrl: 'templates/chat-detail.html',
controller: 'ChatDetailCtrl'
}
}
})
i am passing links in the url as:
href="#/tab/home/www.somepage.com/nesteded?id=99/www.second.com/page/one/more"
i am sure the slashes / are causing the problem here.