Im having trouble setting ionic state view, need to help to clarify the view/state. If i set it to profile it’ll show but in the wrong view(profile view) and if i switch to student it doesn’t navigate there. Any help would be greatly appreciate it.
app.js
.state('tab.student', {
url: '/student',
views: {
'tab-profile': { <====== here i change to 'student and will not work.
templateUrl: 'templates/components/student_profile/student-profile.html',
controller: 'StudentProfileCtrl',
controllerAs: 'studentCtrl'
}
}
});
main.html
<li><a class="item menu-item text-center" menu-close href="#/tab/profile">_Profile</a></li>
<li><a class="item menu-item text-center" menu-close href="#/tab/student">_Student</a></li>