I have got the following but the page does not change after clicking the button, only the url changed:
<button class="button button-clear button-positive" ui-sref="tab.coursedetails">View All</button>
In app.js I have got:
// setup an abstract state for the tabs directive
.state('tab', {
url: '/tab',
abstract: true,
templateUrl: 'templates/tabs.html'
})
// Each tab has its own nav history stack:
.state('tab.home', {
url: '/home',
views: {
'tab-home': {
templateUrl: 'templates/tab-home.html',
controller: 'HomeCtrl'
}
}
})
.state('tab.coursedetails', {
url: '/coursedetails',
views: {
'tab-coursedetails': {
templateUrl: 'templates/page-coursedetails.html',
controller: 'CourseDetailsCtrl'
}
}
})