Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NetanelBasal committed Jun 10, 2017
1 parent 703917d commit 9fb51db
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
#### Angular compare text fields validator - useful for password match fields

`npm install --save ngx-text-equality-validator`
#Installation

`import { TextEqualityValidatorModule } from "ngx-text-equality-validator";`
- `npm install --save ngx-text-equality-validator`

Add the module to your application
- `import { TextEqualityValidatorModule } from "ngx-text-equality-validator";`

#### Model driven
- Add the module to your application

#Usage

### Model driven

```html
<form novalidate [formGroup]="signUpForm">
Expand All @@ -33,7 +37,7 @@ export class AppComponent {
}
```

#### Template driven
### Template driven
```html
<form novalidate #form="ngForm">
<input type="text"
Expand Down

0 comments on commit 9fb51db

Please sign in to comment.