Skip to content

Commit 32d946f

Browse files
committed
Release 5.0.1
1 parent d8f20c5 commit 32d946f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## Breaking changes
2+
Directive email rename to ng
3+
14
# Description
25

36
Angular 4 custom validation, forked from [ng2-validation](https://github.com/yuyang041060120/ng2-validation).
@@ -152,7 +155,7 @@ export class AppModule {
152155
### email
153156

154157
```html
155-
<input type="text" [(ngModel)]="model.field" name="field" #field="ngModel" email>
158+
<input type="text" [(ngModel)]="model.field" name="field" #field="ngModel" ngvemail>
156159
<p *ngIf="field.errors?.email">error message</p>
157160
```
158161

0 commit comments

Comments
 (0)