{"id":19195064,"url":"https://github.com/ksachdeva/angular-swiper","last_synced_at":"2026-01-27T03:36:50.110Z","repository":{"id":29157147,"uuid":"32687474","full_name":"ksachdeva/angular-swiper","owner":"ksachdeva","description":"Angular directive for nolimits4web/Swiper","archived":false,"fork":false,"pushed_at":"2019-04-04T07:08:28.000Z","size":77,"stargazers_count":196,"open_issues_count":51,"forks_count":91,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-11-23T11:11:00.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ksachdeva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-22T17:53:17.000Z","updated_at":"2024-12-11T15:52:16.000Z","dependencies_parsed_at":"2022-08-02T21:34:15.361Z","dependency_job_id":null,"html_url":"https://github.com/ksachdeva/angular-swiper","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ksachdeva/angular-swiper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Fangular-swiper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Fangular-swiper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Fangular-swiper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Fangular-swiper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksachdeva","download_url":"https://codeload.github.com/ksachdeva/angular-swiper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Fangular-swiper/sbom","scorecard":{"id":571110,"data":{"date":"2025-08-11","repo":{"name":"github.com/ksachdeva/angular-swiper","commit":"f65e67139e0cea22393e9fd37ca84cd13ec71a8d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":3,"reason":"Found 5/16 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T16:23:00.820Z","repository_id":29157147,"created_at":"2025-08-20T16:23:00.820Z","updated_at":"2025-08-20T16:23:00.820Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28693324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T11:01:27.039Z","status":"ssl_error","status_checked_at":"2026-01-23T11:00:26.909Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-09T12:08:14.422Z","updated_at":"2026-01-27T03:36:50.094Z","avatar_url":"https://github.com/ksachdeva.png","language":"HTML","readme":"# angular-swiper\nDirective that wraps nolimits4web/swiper library for AngularJS.\nLicense: Apache\n\n## 1 Installation\n\n```\nbower install angular-swiper\n```\n\n## 2 Development\n\n```\nnpm install -g gulp\nnpm install\nbower install\n```\n\n## 3 Usage\n### 3.1 Requirements\n\nAdd `\u003cscript\u003e`s to your `html` files for [angular](https://github.com/angular/bower-angular) and angular-swiper:\n\n```html\n    \u003clink rel=\"stylesheet\" href=\"bower_components/swiper/dist/css/swiper.min.css\"\u003e\n    \n    \u003cscript src=\"../bower_components/swiper/dist/js/swiper.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"../bower_components/angular/angular.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"../dist/angular-swiper.js\"\u003e\u003c/script\u003e\n```\n\nAnd add `ksSwiper` as a dependency for your app:\n\n```javascript\nangular.module('myApp', ['ksSwiper', ...]);\n```\n\n### 3.2 Sample Markup\n\nExample:\n```html\n\u003cks-swiper-container initial-slide=\"3\" loop=\"false\" show-nav-buttons=\"false\" slides-per-view=\"4\" space-between=\"5\" pagination-clickable=\"false\"\u003e\n    \u003cks-swiper-slide class=\"swiper-slide\" ng-repeat=\"s in [1,2,3,4,5,6,7,8,9,10,11,12,13,14]\"\u003e\n        \u003cimg ng-src=\"http://api.randomuser.me/portraits/thumb/men/{{s}}.jpg\"\u003e\n    \u003c/ks-swiper-slide\u003e\n\u003c/ks-swiper-container\u003e\n```\n\n### 3.3 Directive default values\n\nIf no attributes are given, an object with the following values will be used to initiate the swiper. It is possible to use the directive without specifying attributes.\n\n```javascript\n// directive defaults\nvar params = {\n    slidesPerView: $scope.slidesPerView || 1,\n    slidesPerColumn: $scope.slidesPerColumn || 1,\n    spaceBetween: $scope.spaceBetween || 0,\n    direction: $scope.direction || 'horizontal',\n    loop: $scope.loop || false,\n    initialSlide: $scope.initialSlide || 0,\n    showNavButtons: false\n};\n```\n\n### 3.4 Possible Attributes\n\nThe following attributes can be used with this directive. Please see the [Swiper API Documentation](http://www.idangero.us/swiper/api/#.VZ03Je2qpBc) for more information about the type and description of parameters.\n\n```html\n\u003cks-swiper-container\n    slides-per-view=\"3\"\n    slides-per-column=\"1\"\n    space-between=\"0\"\n    pagination-is-active=\"true\"\n    pagination-clickable=\"false\"\n    show-nav-buttons=\"false\"\n    loop=\"false\"\n    autoplay=\"5000\"\n    initial-slide=\"0\"\n    direction=\"horizontal\"\u003e\n    ...\n\u003c/ks-swiper-container\u003e\n```\n\n### 3.5 Override any parameter\n\nThis allows you to pass a javascript object that will override any swiper parameter from the [Swiper API Documentation](http://www.idangero.us/swiper/api/#.VZ03Je2qpBc) that is used initialize swiper.\n\nExample:\n```html\n\u003cks-swiper-container override-parameters=\"{'effect':'cube'}\"\u003e\n    \u003cks-swiper-slide class=\"swiper-slide\" ng-repeat=\"s in [1,2,3,4,5,6,7,8,9,10,11,12,13,14]\"\u003e\n      \u003cimg ng-src=\"http://api.randomuser.me/portraits/thumb/men/{{s}}.jpg\"\u003e\n    \u003c/ks-swiper-slide\u003e\n\u003c/ks-swiper-container\u003e\n```\n\n### 3.6 Two-Way Binding of Swiper\n\nIn some situations it might be useful to access the actual swiper instance. Passing the parent scope will linked it to the model in the directive's isolated scope which is used for the swiper instance.\n\nIt can also be used to slideTo(index, speed, runCallbacks), slidePrev(runCallbacks, speed), slideNext(runCallbacks, speed) or for callback functions.\n\nExample Template:\n```html\n\u003cdiv ng-controller=\"TestCtrl\"\u003e\n\u003cks-swiper-container swiper=\"swiper\"\u003e\n    \u003cks-swiper-slide class=\"swiper-slide\" ng-repeat=\"s in [1,2,3,4,5,6,7,8,9,10,11,12,13,14]\"\u003e\n      \u003cimg ng-src=\"http://api.randomuser.me/portraits/thumb/men/{{s}}.jpg\"\u003e\n    \u003c/ks-swiper-slide\u003e\n\u003c/ks-swiper-container\u003e\n\u003c/div\u003e\n```\n\nExample Controller\n```javascript\nangular.module('swiperApp')\n  .controller('TestCtrl', function($scope){\n\n    $scope.swiper = {};\n\n    $scope.next = function(){\n      $scope.swiper.slideNext();\n    };\n\n  });\n```\n### 3.7 Accessing swiper object after it's created\n\nIn some situations, like when you wanna listen to swiper events, is useful to know when the swiper object is created (that occurs after all slides are created).\n\nFor that purpose is available the on-ready attribute. You can specify a function to be called when the swiper object is created. In the function you can manipulate the swiperobject, and for example, bind an event. The function must has a paramteter called swiper, refering to swiper object.\n\nExample template\n\n```html\n\u003cdiv ng-controller=\"TestCtrl\"\u003e\n\u003cks-swiper-container swiper=\"swiper\" on-ready=\"onReadySwiper(swiper)\"\u003e\n    \u003cks-swiper-slide class=\"swiper-slide\" ng-repeat=\"s in [1,2,3,4,5,6,7,8,9,10,11,12,13,14]\"\u003e\n      \u003cimg ng-src=\"http://api.randomuser.me/portraits/thumb/men/{{s}}.jpg\"\u003e\n    \u003c/ks-swiper-slide\u003e\n\u003c/ks-swiper-container\u003e\n\u003c/div\u003e\n```\n\nExample Controller\n```javascript\nangular.module('swiperApp')\n  .controller('TestCtrl', function($scope){\n\n    $scope.swiper = {};\n\n    $scope.onReadySwiper = function (swiper) {\n      \n      swiper.on('slideChangeStart', function () {\n      \n        console.log('slideChangeStart');\n      });\n    };\n\n  });\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksachdeva%2Fangular-swiper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksachdeva%2Fangular-swiper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksachdeva%2Fangular-swiper/lists"}