angular-input-masks
angular-input-masks copied to clipboard
Dynamic masks
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.