Hy folks,
I try to implement a simple slider:
Base view:
<ion-nav-view class="test" name="menuContent"></ion-nav-view>
State:
.state('app.tour', {
url: '/tour',
views: {
'menuContent': {
templateUrl: 'app/components/tour/tour.html',
controller: 'TourCtrl'
}
}
})
Slider:
<ion-view title="Tour Slides" >
<ion-content direction="x" >
<ion-slide-box on-slide-changed="slideHasChanged($index)" show-pager="true" >
<ion-slide>
<div class="box blue"><h1>BLUE</h1></div>
</ion-slide>
<ion-slide>
<div class="box yellow"><h1>YELLOW</h1></div>
</ion-slide>
<ion-slide>
<div class="box pink"><h1>PINK</h1></div>
</ion-slide>
</ion-slide-box>
</ion-content>
</ion-view>
But the pagination sticks at top and swipe screnn do not change slide…
Could anybody be so kind and hepl me a bit??