|
16 | 16 | <ion-title>Hello</ion-title>
|
17 | 17 | </ion-header-bar>
|
18 | 18 | <ion-content class="padding">
|
19 |
| - <ion-slides options="options"> |
| 19 | + <ion-slides options="options" slider="data.slider"> |
20 | 20 | <ion-slide-page>
|
21 |
| - <h2>Journey to HD 219134 b</h2> |
22 |
| - <p> |
23 |
| - This app will prepare you for your journey through the galaxy |
24 |
| - to HD 219134 b, an exoplanet 21 lightyears away from our home on Earth. |
25 |
| - </p> |
26 |
| - <p> |
27 |
| - <img src="exoplanet.jpg" style="max-width: 100%" /> |
28 |
| - </p> |
29 |
| - <div style="text-align: center"> |
30 |
| - <small style="font-style: italic">An artist's rendering of your new home.</small> |
31 |
| - </div> |
| 21 | + <ion-content> |
| 22 | + <h2>Journey to HD 219134 b</h2> |
| 23 | + <p> |
| 24 | + This app will prepare you for your journey through the galaxy |
| 25 | + to HD 219134 b, an exoplanet 21 lightyears away from our home on Earth. |
| 26 | + </p> |
| 27 | + <p> |
| 28 | + <img src="exoplanet.jpg" style="max-width: 100%" /> |
| 29 | + </p> |
| 30 | + <p> |
| 31 | + <img src="exoplanet.jpg" style="max-width: 100%" /> |
| 32 | + </p> |
| 33 | + <p> |
| 34 | + <img src="exoplanet.jpg" style="max-width: 100%" /> |
| 35 | + </p> |
| 36 | + <p> |
| 37 | + <img src="exoplanet.jpg" style="max-width: 100%" /> |
| 38 | + </p> |
| 39 | + <p> |
| 40 | + <img src="exoplanet.jpg" style="max-width: 100%" /> |
| 41 | + </p> |
| 42 | + <p> |
| 43 | + <img src="exoplanet.jpg" style="max-width: 100%" /> |
| 44 | + </p> |
| 45 | + <div style="text-align: center"> |
| 46 | + <small style="font-style: italic">An artist's rendering of your new home.</small> |
| 47 | + </div> |
| 48 | + </ion-content> |
32 | 49 | </ion-slide-page>
|
33 | 50 | <ion-slide-page>
|
34 | 51 | <h2>Before launch</h2>
|
@@ -98,10 +115,21 @@ <h2>Life on HD 219134 b</h2>
|
98 | 115 | </ion-pane>
|
99 | 116 | <script>
|
100 | 117 | angular.module('slidesTest', ['ionic'])
|
101 |
| - .controller('MyCtrl', ['$scope', '$interval', function($scope, $interval) { |
| 118 | + .controller('MyCtrl', ['$scope', '$interval', '$timeout', function($scope, $interval, $timeout) { |
102 | 119 | $scope.options = {
|
103 | 120 | loop: true
|
104 | 121 | }
|
| 122 | + |
| 123 | + $scope.data = {}; |
| 124 | + |
| 125 | + $scope.$watch('data.slider', function(nv, ov) { |
| 126 | + $scope.slider = $scope.data.slider; |
| 127 | + }) |
| 128 | + |
| 129 | + $timeout(function() { |
| 130 | + //$scope.slider.slideNext(); |
| 131 | + }, 1000) |
| 132 | + |
105 | 133 | /*
|
106 | 134 | $scope.extraSlides = [];
|
107 | 135 | var i = 0;
|
|
0 commit comments