Ionic - routing issue/button link -
i'm writing first ionic app , hit little problem.
i have tab interface has login screen, once login can select tabs, on 1 tab screen have list of items need click show further options, can't quite these links work, think ui-sref bit wrong... looking second pair of eyes! linking profile view i'm struggling with, below app.js routing , page links on below.
app.js .state('login', { url: '/login', templateurl: 'templates/login.html', controller:'loginctrl'
})
// setup abstract state tabs directive .state('tab', { url: "/tab", abstract: true, templateurl: "templates/tabs.html" }) .state('tab.profile', { url: '/profile', views: { 'profile': { templateurl: 'templates.tab.profile.html', controller: 'profilectrl' } }
})
then list page:
<ion-content has-header="true" padding="true" class="viewer-panel"> <div class="list"> <div class="item item-divider"> profile </div> <a class="item item-icon-left" ui-sref="tab.profile"> <i class="icon ion-person"></i> view profile </a>
Comments
Post a Comment