{"id":13577111,"url":"https://github.com/devmark/ngx-slick","last_synced_at":"2025-04-09T22:14:52.143Z","repository":{"id":57112767,"uuid":"90440291","full_name":"devmark/ngx-slick","owner":"devmark","description":"angular6 a wrapper for slick plugin ","archived":false,"fork":false,"pushed_at":"2019-04-09T23:33:04.000Z","size":102,"stargazers_count":108,"open_issues_count":30,"forks_count":45,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-09T22:14:26.337Z","etag":null,"topics":["angular","angular2","jquery","slick","slick-carousel","ui"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devmark.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-06T05:43:26.000Z","updated_at":"2024-11-21T22:12:36.000Z","dependencies_parsed_at":"2022-08-21T13:00:24.105Z","dependency_job_id":null,"html_url":"https://github.com/devmark/ngx-slick","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmark%2Fngx-slick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmark%2Fngx-slick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmark%2Fngx-slick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmark%2Fngx-slick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devmark","download_url":"https://codeload.github.com/devmark/ngx-slick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119290,"owners_count":21050755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular2","jquery","slick","slick-carousel","ui"],"created_at":"2024-08-01T15:01:18.113Z","updated_at":"2025-04-09T22:14:52.115Z","avatar_url":"https://github.com/devmark.png","language":"JavaScript","readme":"# ngx-slick\n\nSupport angular 6+, Slick 1.8.1\n\n[Example](https://embed.plnkr.co/fblxzfPneL66950A4VDM/)\n\n## Installation\n\nTo install this library, run:\n\n```bash\n$ npm install ngx-slick --save\n```\n\n## Consuming your library\n\nOnce you have published your library to npm, you can import your library in any Angular application by running:\n\n```bash\n$ npm install ngx-slick\n```\n\nand then from your Angular `AppModule`:\n\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppComponent } from './app.component';\n\n// Import your library\nimport { SlickModule } from 'ngx-slick';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n\n    // Specify your library as an import\n    SlickModule.forRoot()\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\n- Include jquery and slick css/js in your application :\n```\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css\"/\u003e\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick-theme.css\"/\u003e\n\n\u003cscript src=\"//code.jquery.com/jquery-3.3.1.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"//unpkg.com/slick-carousel@1.8.1/slick/slick.js\"\u003e\u003c/script\u003e\n```\n\nOnce your library is imported, you can use its components, directives and pipes in your Angular application:\n```html\n  \u003c!-- You can now use your library component in app.component.html --\u003e\n    \u003cngx-slick class=\"carousel\" #slickModal=\"slick-modal\" [config]=\"slideConfig\" (afterChange)=\"afterChange($event)\"\u003e\n        \u003cdiv ngxSlickItem *ngFor=\"let slide of slides\" class=\"slide\"\u003e\n              \u003cimg src=\"{{ slide.img }}\" alt=\"\" width=\"100%\"\u003e\n        \u003c/div\u003e\n    \u003c/ngx-slick\u003e\n\n    \u003cbutton (click)=\"addSlide()\"\u003eAdd\u003c/button\u003e\n    \u003cbutton (click)=\"removeSlide()\"\u003eRemove\u003c/button\u003e\n    \u003cbutton (click)=\"slickModal.slickGoTo(2)\"\u003eslickGoto 2\u003c/button\u003e\n    \u003cbutton (click)=\"slickModal.unslick()\"\u003eunslick\u003c/button\u003e\n```\n\n```javascript\n  slides = [\n    {img: \"http://placehold.it/350x150/000000\"},\n    {img: \"http://placehold.it/350x150/111111\"},\n    {img: \"http://placehold.it/350x150/333333\"},\n    {img: \"http://placehold.it/350x150/666666\"}\n  ];\n  slideConfig = {\"slidesToShow\": 4, \"slidesToScroll\": 4};\n\n  addSlide() {\n    this.slides.push({img: \"http://placehold.it/350x150/777777\"})\n  }\n\n  removeSlide() {\n    this.slides.length = this.slides.length - 1;\n  }\n\n  afterChange(e) {\n    console.log('afterChange');\n  }\n```\n\n\n## Development\n\nTo generate all `*.js`, `*.d.ts` and `*.metadata.json` files:\n\n```bash\n$ npm run build\n```\n\nTo lint all `*.ts` files:\n\n```bash\n$ npm run lint\n```\n\n## License\n\nMIT © [Mark](mailto:hc.devmark@gmail.com)","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmark%2Fngx-slick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevmark%2Fngx-slick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmark%2Fngx-slick/lists"}