你好,我有一個問題...角視圖:總是會回到否則鏈路(更新代碼)
.state('tabs', {
url: '/tabs',
abstract: true,
templateUrl: 'templates/tabs.html'
})
.state('tabs.personal', {
url: '/personal',
views: {
'personalGoals-view': {
templateUrl: 'templates/personalGoals.html',
controller: 'personalCtrl'
}
}
})
.state('tabs.personal.personalview', {
url: 'tabs/personal/personalview',
views: {
'personalview-view': {
template: 'hello',
controller: 'personalViewCtrl'
}
}
})
,這是我的鏈接:
<ion-view view-title="PersonalGoals">
<ion-content class="has-footer">
<ion-item ng-repeat="goal in goals" href="#" ui-sref="tabs.personal.personalview">
<span class="goal-lists">{{goal.goaltitle}}</span>
</ion-item>
</ion-content>
</ion-view>
(井號)/標籤/個人/ personalview不顯示的問題可以追溯到我的,否則鏈接...我不知道爲什麼...請幫助...
我做了...只有鉻上的網址正在改變......沒有別的...... –
好吧,然後檢查Walfrat的評論:我們需要更多的代碼 – fikkatra