An open API service indexing awesome lists of open source software.

https://github.com/netanelbasal/angular2-text-equality-validator

Angular 2 compare text fields validator - useful for password match fields
https://github.com/netanelbasal/angular2-text-equality-validator

Last synced: 9 months ago
JSON representation

Angular 2 compare text fields validator - useful for password match fields

Awesome Lists containing this project

README

          

## deprecated!!
Use https://github.com/NetanelBasal/ngx-text-equality-validator instead

#### Angular 2 compare text fields validator - useful for password match fields

`npm install --save angular2-text-equality-validator`

`import { EqualTextValidator } from "angular2-text-equality-validator";`

Add the directive to module

#### Model driven

```html




Passwords don't match

```

```js
export class AppComponent {
signUpForm: FormGroup;

constructor(public fb: FormBuilder) {
this.signUpForm = this.fb.group({
password: [""],
repeatPassword: [""]
});
}
}
```

#### Template driven
```html




Passwords don't match

```