ng2-validation
ng2-validation copied to clipboard
Template parse errors when using the example template
Template: `<input type="text" [(ngModel)]="field" name="field" #field="ngModel" [rangeLength]="[5, 9]"/>
error message
`Error: `Error: Template parse errors: Can't bind to 'rangeLength' since it isn't a known property of 'input'. ("<input type="text" [(ngModel)]="field" name="field" #field="ngModel" [ERROR ->][rangeLength]="[5, 9]"/>
error message
"): LoginComponent@0:69`Help, please.
Have you import CustomModule?
Hi, I have the same issue. I imported CustomFormsModule in my module.ts and try to use [min] in my template but it throws a template parse error.
Did I miss something?
Edit : npm update does the job :)
Hi I am facing same issue with latest version of ng2-validation. Can someone please suggest a solution? I am using Angular 4.