Commit 1856f8e
committed
Wrap initializing function call in $timeout
In case the elements to be slided are generated using nested transcluded angular directives (including ng-repeat) the slick initialization happens before all elements are available in the DOM.
As an example see https://github.com/vasyabigi/angular-slick/blob/master/dist/slick.js which also uses the $timeout approach.1 parent 7fb0e31 commit 1856f8e
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
0 commit comments