【发布时间】:2019-04-02 03:56:01
【问题描述】:
我的输入看起来像这样:我只想使用输入掩码,但不强制用户严格填写掩码中的模式。
<input type="text" class="Enter Zipcode" placeholder="Enter Zipcode" mask="00000-0000" formControlName="zipcode">
默认情况下似乎根据documentation [validation]=true。但应该是某种方式将验证更改为假。当我这样做时
<input type="text" class="Enter Zipcode" placeholder="Enter Zipcode" mask="00000-0000" formControlName="zipcode" [validation]="true">
ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'validation' since it isn't a known property of 'input'. ("text" class="Enter Zipcode" placeholder="Enter Zipcode" mask="00000-0000" formControlName="zipcode" [ERROR ->][validation]="false">
Angular 抛出模板解析错误?
【问题讨论】:
标签: javascript angular7 input-mask