{"id":19873383,"url":"https://github.com/ismaestro/ngx-scroll-to-first-invalid","last_synced_at":"2025-05-02T09:31:41.932Z","repository":{"id":43408520,"uuid":"155367968","full_name":"Ismaestro/ngx-scroll-to-first-invalid","owner":"Ismaestro","description":"Directive to scroll to first invalid form control inside an Angular form on submit","archived":false,"fork":false,"pushed_at":"2024-11-05T21:40:00.000Z","size":1550,"stargazers_count":30,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T00:51:13.820Z","etag":null,"topics":["angular","control","directive","first","form","invalid","scroll","submit"],"latest_commit_sha":null,"homepage":"https://ngx-scroll-to-first-invalid.netlify.app","language":"HTML","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/Ismaestro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-30T10:41:59.000Z","updated_at":"2024-11-05T21:40:03.000Z","dependencies_parsed_at":"2024-11-05T22:23:19.965Z","dependency_job_id":"e35f8bc2-71f3-414a-8ff6-4aa06a68c1d8","html_url":"https://github.com/Ismaestro/ngx-scroll-to-first-invalid","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismaestro%2Fngx-scroll-to-first-invalid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismaestro%2Fngx-scroll-to-first-invalid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismaestro%2Fngx-scroll-to-first-invalid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismaestro%2Fngx-scroll-to-first-invalid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ismaestro","download_url":"https://codeload.github.com/Ismaestro/ngx-scroll-to-first-invalid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252015856,"owners_count":21680837,"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","control","directive","first","form","invalid","scroll","submit"],"created_at":"2024-11-12T16:18:28.447Z","updated_at":"2025-05-02T09:31:41.601Z","avatar_url":"https://github.com/Ismaestro.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003engx-scroll-to-first-invalid\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n    Angular directive to scroll to first invalid input inside a form.\n    \u003cbr\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://ngx-scroll-to-first-invalid.netlify.app/\"\u003eLIVE DEMO\u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://ngx-scroll-to-first-invalid.netlify.app/\"\u003e\n      \u003cimg src=\"https://media.giphy.com/media/yNi7F2K2L2nRTiD4O2/giphy.gif\" alt=\"Demo example\"/\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://github.com/Ismaestro/ngx-scroll-to-first-invalid/issues/new?template=bug.md\"\u003eReport bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/Ismaestro/ngx-scroll-to-first-invalid/issues/new?template=feature.md\u0026labels=feature\"\u003eRequest feature\u003c/a\u003e\n    \u003cbr\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n## Table of contents\n\n- [Usage](#usage)\n- [Bugs and feature requests](#bugs-and-feature-requests)\n- [Creators](#creators)\n- [Copyright and license](#copyright-and-license)\n\n## Usage\n\n```sh\nnpm i @ismaestro/ngx-scroll-to-first-invalid --save-dev\n```\n\n#### 1. Import the directive in your component:\n\n```ts\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  standalone: true,\n  imports: [NgxScrollToFirstInvalidDirective, ...],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\n```\n\n#### 2. Use the directive inside a form:\n\n```html\n\u003cform [formGroup]=\"testForm\" ngxScrollToFirstInvalid\u003e\n  \u003cinput id=\"test-input1\" type=\"text\" formControlName=\"someText1\" /\u003e\n  \u003cbutton (click)=\"saveForm()\"\u003e\u003c/button\u003e\n\u003c/form\u003e\n```\n\nHere you have an example of a form using ngx-scroll-to-first-invalid.\n[DEMO](https://ngx-scroll-to-first-invalid.netlify.app)\n\nIt also works with nested forms, and recently added support for Angular Ionic.\n\n## Bugs and feature requests\n\nHave a bug or a feature request? Please first read the\n[issue guidelines](https://github.com/Ismaestro/ngx-scroll-to-first-invalid/blob/master/CONTRIBUTING.md)\nand search for existing and closed issues. If your problem or idea is not addressed yet,\n[please open a new issue](https://github.com/Ismaestro/ngx-scroll-to-first-invalid/issues/new).\n\n## Creators\n\n**Ismael Ramos**\n\n- \u003chttps://github.com/ismaestro\u003e\n\n## Copyright and license\n\nCode released under the\n[MIT License](https://github.com/Ismaestro/ngx-scroll-to-first-invalid/blob/master/LICENSE).\n\nEnjoy :metal:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fismaestro%2Fngx-scroll-to-first-invalid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fismaestro%2Fngx-scroll-to-first-invalid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fismaestro%2Fngx-scroll-to-first-invalid/lists"}