{"id":16428808,"url":"https://github.com/netanelbasal/angular2-text-equality-validator","last_synced_at":"2025-04-24T20:32:27.549Z","repository":{"id":57179750,"uuid":"71455419","full_name":"NetanelBasal/angular2-text-equality-validator","owner":"NetanelBasal","description":"Angular 2 compare text fields validator - useful for password match fields","archived":false,"fork":false,"pushed_at":"2017-06-10T19:38:42.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T08:03:14.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/NetanelBasal.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":"2016-10-20T11:15:22.000Z","updated_at":"2018-03-22T22:58:57.000Z","dependencies_parsed_at":"2022-09-14T03:30:41.801Z","dependency_job_id":null,"html_url":"https://github.com/NetanelBasal/angular2-text-equality-validator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetanelBasal%2Fangular2-text-equality-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetanelBasal%2Fangular2-text-equality-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetanelBasal%2Fangular2-text-equality-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetanelBasal%2Fangular2-text-equality-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NetanelBasal","download_url":"https://codeload.github.com/NetanelBasal/angular2-text-equality-validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250704929,"owners_count":21473789,"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":[],"created_at":"2024-10-11T08:19:08.087Z","updated_at":"2025-04-24T20:32:27.321Z","avatar_url":"https://github.com/NetanelBasal.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## deprecated!! \nUse https://github.com/NetanelBasal/ngx-text-equality-validator instead \n\n#### Angular 2 compare text fields validator - useful for password match fields\n\n\n`npm install --save angular2-text-equality-validator`  \n\n`import { EqualTextValidator } from \"angular2-text-equality-validator\";`  \n\nAdd the directive to module\n\n#### Model driven\n\n```html\n \u003cform novalidate [formGroup]=\"signUpForm\"\u003e\n  \u003cinput type=\"text\"\n         placeholder=\"password\"\n         formControlName=\"password\"\n         validateEqualTo=\"repeatPassword\"\u003e\n  \u003cinput type=\"text\" placeholder=\"confirm\" formControlName=\"repeatPassword\"\u003e\n  \u003cinput type=\"submit\" value=\"Submit\" [disabled]=\"signUpForm.invalid\"\u003e\n  \u003cp *ngIf=\"signUpForm.get('password').hasError('validateEqual')\"\u003ePasswords don't match\u003c/p\u003e\n\u003c/form\u003e\n```\n\n```js\nexport class AppComponent {\n  signUpForm: FormGroup;\n\n  constructor(public fb: FormBuilder) {\n    this.signUpForm = this.fb.group({\n      password: [\"\"],\n      repeatPassword: [\"\"]\n    });\n  }\n}\n```\n\n#### Template driven\n```html\n\u003cform novalidate #form=\"ngForm\"\u003e\n  \u003cinput type=\"text\"\n         placeholder=\"password\"\n         ngModel\n         validateEqualTo=\"repeatPassword\"\n         name=\"password\"\n         required\n         #passwordControl=\"ngModel\"\n  \u003e\n  \u003cinput type=\"text\" placeholder=\"confirm\" name=\"repeatPassword\" ngModel required\u003e\n  \u003cinput type=\"submit\" value=\"Submit\" [disabled]=\"form.invalid\"\u003e\n \u003cp *ngIf=\"passwordControl.errors?.validateEqual\"\u003ePasswords don't match\u003c/p\u003e\n\u003c/form\u003e\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetanelbasal%2Fangular2-text-equality-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetanelbasal%2Fangular2-text-equality-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetanelbasal%2Fangular2-text-equality-validator/lists"}