angular-input-masks icon indicating copy to clipboard operation
angular-input-masks copied to clipboard

Dynamic masks

Open leozzitowned opened this issue 9 years ago • 0 comments

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.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39331420-dynamic-masks?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github).

leozzitowned avatar Nov 17 '16 18:11 leozzitowned