问题描述
在HTML代码下方。
<input matInput type="text" placeholder="FEIN" mask="00-00000000000" name="fein" [(ngModel)]="newEmployer.fein" required formControlName="fein">
<mat-error *ngIf="hasError('fein','required')">FEIN is required</mat-error>
在模块代码下方
import { IConfig,NgxMaskModule } from 'ngx-mask';
NgxMaskModule.forRoot(maskConfigFunction)
在控制台上的异常下方。
EmployerComponent.html:111 ERROR TypeError: Boolean is not a function
at MaskService.applyMask (ngx-mask.js:528)
at MaskService.applyValueChanges (ngx-mask.js:570)
at MaskDirective.onInput (ngx-mask.js:999)
at Object.eval [as handleEvent] (EmployerComponent.html:111)
at handleEvent (core.js:43993)
at callWithDebugContext (core.js:45632)
at Object.debugHandleEvent [as handleEvent] (core.js:45247)
at dispatchEvent (core.js:29804)
at core.js:42925
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)