Skip to content
This repository was archived by the owner on May 10, 2018. It is now read-only.

Commit 0bb9821

Browse files
author
Michael Weslander
committed
docs(reademe): adds troubleshooting suggestions for indicatior section
1 parent 0483f12 commit 0bb9821

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,13 @@ You can add position indicators by adding this directive where you want :
7878
<div rn-carousel-indicators ng-if="slides.length > 1" slides="slides" rn-carousel-index="carouselIndex"></div>
7979
```
8080
- `slides` is the same collection you use in the carousel ng-repeat
81+
82+
Note: If loading in slides from an async service, the `ng-if="slides.length > 1"` may not update as expected. In this case, try `ng-if="slides"`.
83+
8184
- `carouselIndex` is the same index you've defined for the carousel
8285

86+
Note: If the indicators don't seem to update with the slides, try binding to an object param i.e. `carousel.index`, set in the controller like `$scope.carousel.index = 0` [Explanation.](http://www.codelord.net/2014/05/10/understanding-angulars-magic-dont-bind-to-primitives/)
87+
8388
## Notes :
8489
- if you use IE<=9, iOS<7 or Android<4 please include the [requestAnimationFrame polyfill](https://github.com/darius/requestAnimationFrame/blob/master/requestAnimationFrame.js) in your application.
8590
- if you use IE<=8 include the [es5-shim polyfill](https://github.com/es-shims/es5-shim/blob/master/es5-shim.min.js) in your application.

0 commit comments

Comments
 (0)