assisrafael/angular-input-masks

Dynamic masks

Open

#235 创建于 2016年11月17日

在 GitHub 查看
 (0 评论) (3 反应) (0 负责人)JavaScript (970 star) (334 fork)batch import
enhancementhelp wanted

描述

Hi,

Given a condition on my controller, I need to change the input masks (ui-money-mask to ui-number-mask) dynamically.

I am doing this way:

<input ng-if="condition" type="text" ui-money-mask />
<input ng-if="!condition" type="text" ui-number-mask />

Is there a better way to do it?

Thanks.

贡献者指南