{"id":32261238,"url":"https://github.com/alirezamirian/angular-material-swipe-to-refresh","last_synced_at":"2026-02-23T14:32:29.017Z","repository":{"id":58238871,"uuid":"75017267","full_name":"alirezamirian/angular-material-swipe-to-refresh","owner":"alirezamirian","description":"Swipe to refresh (pull to refresh) for Angular Material","archived":false,"fork":false,"pushed_at":"2018-05-13T08:53:30.000Z","size":37,"stargazers_count":15,"open_issues_count":4,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-23T13:54:05.948Z","etag":null,"topics":["angular-material","material-design","pull-down-refresh","pull-to-refresh"],"latest_commit_sha":null,"homepage":"https://alirezamirian.github.io/angular-material-swipe-to-refresh/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alirezamirian.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-11-28T21:47:42.000Z","updated_at":"2020-05-15T07:22:28.000Z","dependencies_parsed_at":"2022-08-31T00:30:46.883Z","dependency_job_id":null,"html_url":"https://github.com/alirezamirian/angular-material-swipe-to-refresh","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/alirezamirian/angular-material-swipe-to-refresh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alirezamirian%2Fangular-material-swipe-to-refresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alirezamirian%2Fangular-material-swipe-to-refresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alirezamirian%2Fangular-material-swipe-to-refresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alirezamirian%2Fangular-material-swipe-to-refresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alirezamirian","download_url":"https://codeload.github.com/alirezamirian/angular-material-swipe-to-refresh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alirezamirian%2Fangular-material-swipe-to-refresh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29745573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: 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":["angular-material","material-design","pull-down-refresh","pull-to-refresh"],"created_at":"2025-10-22T20:20:23.608Z","updated_at":"2026-02-23T14:32:29.012Z","avatar_url":"https://github.com/alirezamirian.png","language":"JavaScript","readme":"# Angular Material Extensions - Swipe to refresh\nImplementation of [material design swipe to refresh](https://material.google.com/patterns/swipe-to-refresh.html#swipe-to-refresh-positioning)\nfor [Angular Material](https://material.angularjs.org).\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://cloud.githubusercontent.com/assets/3150694/20712903/7116dc4c-b65b-11e6-84d7-4a518c6def61.gif\" align=\"center\"\nalt=\"swipe to refresh\"\u003e\n\u003c/p\u003e\n\n## Dependencies\n- Angular Material\n\n## Installation\n```bash\nbower install mde-swipe-to-refresh --save\n```\n\n## Usage\nAdd script and style:\n```html\n...\n\u003cscript src=\"bower_components/mde-swipe-to-refresh/dist/mde-swipe-to-refresh.min.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" href=\"bower_components/mde-swipe-to-refresh/dist/mde-swipe-to-refresh.min.css\"\u003e\n...\n```\nAdd module dependency:\n```js\nangular.module(\"yourApp\", ['mde.swipeToRefresh'])\n```\nUse it:\n```html\n\u003cdiv mde-swipe-to-refresh mde-on-refresh=\"ctrl.refresh()\"\u003e\u003c/div\u003e\n```\nBy default scrolling element is assumed to be `body`. If it's not the case, you can specify it with one of the following\nways:\n\n- `mde-scroll-host-selector` attribute:\n```html\n\u003cdiv mde-swipe-to-refresh mde-scroll-host-selector=\".container\"\u003e\u003c/any\u003e\n```\nIt will look up for the first ancestor that matches the selector.\n\n- `mde-swipe-to-refresh-scroll-host` directive:\n```html\n\u003cdiv mde-swipe-to-refresh-scroll-host\u003e\n    \u003cdiv mde-swipe-to-refresh\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n### Options\n- `mde-on-refresh`:\nOptional expression to evaluate on refresh. If promise is returned, component will stay in spinning state until promise \nis resolved or rejected.\n- `mde-on-cancel`:\nOptional expression to evaluate on cancel.\n- `mde-scroll-host-selector`: String for determining scroll host from ancestors. It will be ignored if \n`mde-swipe-to-refresh-scroll-host` directive is used.\n- `mde-threshold`:\nThreshold in pixels. Defaults to `mdeSwipeToRefreshConfig.threshold`\n\n\n## TODO\n- [ ] Improve demo\n- [ ] fix bug when scroll host is not correctly set\n- [ ] add arrow according to spec\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falirezamirian%2Fangular-material-swipe-to-refresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falirezamirian%2Fangular-material-swipe-to-refresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falirezamirian%2Fangular-material-swipe-to-refresh/lists"}