Angular 9中的NGX面具问题
我通过为其分配一个变量,在我的应用中动态使用了NGX蒙版。
这是可确定的变量,当变量为null或未定义时,输入显示未定义。
这是在我将角度从VER-8升级到VER-9之后发生的。
它在Angular 8上正常工作。
当变量为空或未定义时,我希望输入中的蒙版无能为力。请帮我。
I have used ngx-mask dynamically in my app by assigning a variable to it.
This is nullable variable and input shows undefined when the variable is null or undefined.
This is happening after I upgrade Angular from ver-8 to ver-9.
It was working fine on Angular 8.
I want mask in input does nothing when the variable is null or undefined. Please help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决方案。
问题是我使用的是值,而不是NGMODEL来应用输入值。
当我将其更改为NGMODEL时,问题就解决了。
I find the solution.
The problem was I was using value instead of ngModel to apply value on input.
When I changed it to ngModel, the issue resolved.