Skip to content

Commit

Permalink
refactor(slick): improve destroy/init performance via ngAfterViewChec…
Browse files Browse the repository at this point in the history
…ked lazy process & remove initSlidesLength input
  • Loading branch information
leo6104 committed Aug 15, 2018
1 parent 8d2662f commit 7a54966
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 162 deletions.
1 change: 0 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ Once your library is imported, you can use its components, directives and pipes
<!-- You can now use your library component in app.component.html -->
<ngx-slick-carousel class="carousel"
#slickModal="slick-carousel"
[initSlidesLength]="slides.length"
[config]="slideConfig"
(init)="slickInit($event)"
(breakpoint)="breakpoint($event)"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-slick-carousel",
"version": "0.3.4",
"version": "0.4.0",
"scripts": {
"build": "ng build ngx-slick-carousel",
"docs": "npm run docs:build",
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-slick-carousel",
"version": "0.3.4",
"version": "0.4.0",
"repository": {
"type": "git",
"url": "https://github.com/leo6104/ngx-slick-carousel"
Expand Down
Loading

0 comments on commit 7a54966

Please sign in to comment.