You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For change slide content, you have to set `ng-if` to destroy and init it
123
123
124
124
- controller:
@@ -127,9 +127,9 @@ For change slide content, you have to set `ng-if` to destroy and init it
127
127
$scope.numberLoaded=true;
128
128
$scope.numberUpdate=function(){
129
129
$scope.numberLoaded=false; // disable slick
130
-
130
+
131
131
//number update
132
-
132
+
133
133
$scope.numberLoaded=true; // enable slick
134
134
};
135
135
```
@@ -138,25 +138,25 @@ For change slide content, you have to set `ng-if` to destroy and init it
138
138
<scripttype="text/ng-template"id="tpl.html">
139
139
<h3>{{ i.label }}</h3>
140
140
</script>
141
-
141
+
142
142
<slickng-if="numberLoaded">
143
143
<divng-repeat="i in number">
144
144
<divclass=""ng-include="'tpl.html'"></div>
145
145
</div>
146
146
</slick>
147
147
```
148
148
149
-
## Global config
149
+
## Global config
150
150
```js
151
151
config(['slickCarouselConfig', function (slickCarouselConfig) {
152
152
slickCarouselConfig.dots=true;
153
153
slickCarouselConfig.autoplay=false;
154
154
}])
155
155
```
156
156
157
-
## FAQ
157
+
## FAQ
158
158
Q: After change data, could i keep the current slide index?
159
-
A: For this directive, this will destroy and init slick when updating data. You could get current index by event.
159
+
A: For this directive, this will destroy and init slick when updating data. You could get current index by event.
160
160
example:
161
161
```js
162
162
$scope.currentIndex=0;
@@ -174,20 +174,15 @@ example:
174
174
175
175
## Examples
176
176
177
-
You need be running a server to see the samples:
178
-
179
-
Go to your terminal and run:
177
+
Now to run the samples in your local machine you just need to run:
180
178
181
179
```sh
182
-
python -m SimpleHTTPServer
183
-
184
-
```
185
-
after this command you will be loading a python Server in you local machine in most the cases loads in the port 8000, you will be able to see the port when the server starts like that:
186
-
```sh
187
-
Serving HTTP on 0.0.0.0 port 8000 ...
180
+
grunt serve
188
181
```
189
182
190
-
so you can see the samples with this adress: http://localhost:8000/examples/#/
183
+
so you will start a web server on http://localhost:8000
184
+
185
+
now acess the folder examples: http://localhost:8000/examples/#/
0 commit comments