Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ as shown in the example.
```

## Slide data
For change slide content, you have to set `ng-if` to destroy and init it
For change slide content, you have to set `ng-if` to destroy and init it.
$timeout is required to re-init slideshow to trigger digest cycle.

- controller:
```js
Expand All @@ -129,8 +130,9 @@ For change slide content, you have to set `ng-if` to destroy and init it
$scope.numberLoaded = false; // disable slick

//number update

$scope.numberLoaded = true; // enable slick
$timeout(function() {
$scope.numberLoaded = true; // enable slick
});
};
```
- html:
Expand Down