ng2-validation icon indicating copy to clipboard operation
ng2-validation copied to clipboard

Template parse errors when using the example template

Open metellica opened this issue 7 years ago • 3 comments

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.

metellica avatar Nov 15 '16 10:11 metellica

Have you import CustomModule?

yuyang041060120 avatar Feb 16 '17 02:02 yuyang041060120

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 :)

rsaenen avatar Mar 04 '17 11:03 rsaenen

Hi I am facing same issue with latest version of ng2-validation. Can someone please suggest a solution? I am using Angular 4.

anand2sharma avatar Jun 07 '17 11:06 anand2sharma