1
1
import { Component , ViewChild } from '@angular/core' ;
2
- import { AlertController , NavController , Slides , IonicPage } from 'ionic-angular' ;
2
+ import { NavController , Slides , IonicPage } from 'ionic-angular' ;
3
3
4
4
@IonicPage ( )
5
5
@Component ( {
@@ -9,43 +9,37 @@ import { AlertController, NavController, Slides, IonicPage } from 'ionic-angular
9
9
export class SlideRightToLeftPage {
10
10
@ViewChild ( 'slider' ) slider : Slides ;
11
11
12
- slideOptions = {
13
- pager : true ,
14
- autoplay : 2000 ,
15
- paginationClickable : true ,
16
- } ;
17
-
18
- slides = [ {
19
- title : "Dream's Adventure" ,
20
- imageUrl : "assets/img/lists/wishlist-1.jpg" ,
21
- songs : 2 ,
22
- private : false
23
- } ,
24
- {
25
- title : "For the Weekend" ,
26
- imageUrl : "assets/img/lists/wishlist-2.jpg" ,
27
- songs : 4 ,
28
- private : false
29
- } ,
30
- {
31
- title : "Family Time" ,
32
- imageUrl : "assets/img/lists/wishlist-3.jpg" ,
33
- songs : 5 ,
34
- private : true
35
- } ,
36
- {
37
- title : "My Trip" ,
38
- imageUrl : "assets/img/lists/wishlist-4.jpg" ,
39
- songs : 12 ,
40
- private : true
41
- }
12
+ slides = [
13
+ {
14
+ title : "Dream's Adventure" ,
15
+ imageUrl : "assets/img/lists/wishlist-1.jpg" ,
16
+ songs : 2 ,
17
+ private : false
18
+ } ,
19
+ {
20
+ title : "For the Weekend" ,
21
+ imageUrl : "assets/img/lists/wishlist-2.jpg" ,
22
+ songs : 4 ,
23
+ private : false
24
+ } ,
25
+ {
26
+ title : "Family Time" ,
27
+ imageUrl : "assets/img/lists/wishlist-3.jpg" ,
28
+ songs : 5 ,
29
+ private : true
30
+ } ,
31
+ {
32
+ title : "My Trip" ,
33
+ imageUrl : "assets/img/lists/wishlist-4.jpg" ,
34
+ songs : 12 ,
35
+ private : true
36
+ }
42
37
]
43
38
44
39
onSlideChanged ( ) {
45
40
let currentIndex = this . slider . getActiveIndex ( ) ;
46
41
console . log ( "Slide changed! Current index is" , currentIndex ) ;
47
42
}
48
43
49
- constructor ( public navCtrl : NavController , public alertCtrl : AlertController ) {
50
- }
44
+ constructor ( public navCtrl : NavController ) { }
51
45
}
0 commit comments