サブステートにリンクしようとしていますが、それを機能させる方法がわかりません。リンクは次のとおりです。
<a ui-sref="tab.communityDashboard" class="button button-block button-large"><i class="icon ion-home"></i><br />Community Directory</a>
ルートは次のとおりです。
.state('tab', {
url: '/tab',
abstract: true,
templateUrl: 'templates/tabs.html'
})
// Each tab has its own nav history stack:
.state('tab.communityDashboard', {
url: '/communitydashboard',
views: {
'tab-communityDashboard': {
templateUrl: 'templates/tab-dash.html',
controller: 'DashCtrl'
}
}
})
そして最終的に:
$urlRouterProvider.otherwise('/home');
ビューの内容は次のとおりです。
<ion-view view-title="tab-communityDashboard">
<ion-content>
yolo yolo yolo
</ion-content>
</ion-view>
localhost:8100/#/communitydashboard にもアクセスしようとしましたが、ホームにリダイレクトされるだけです。これを修正するにはどうすればよいですか。