Skip to content

Commit 3037a4d

Browse files
committed
Merge pull request #40 from ingoe/master
Wrap initializing function call in $timeout
2 parents 7fb0e31 + 1856f8e commit 3037a4d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/slick.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,9 @@ angular
143143
return slick.slideHandler(currentIndex);
144144
}
145145
});
146-
147-
slickness.slick(options);
146+
$timeout(function() {
147+
slickness.slick(options);
148+
});
148149
}
149150

150151
scope.internalControl = options.method || {};

0 commit comments

Comments
 (0)