assisrafael/angular-input-masks

Dynamic masks

Open

#235 aberto em 17 de nov. de 2016

Ver no GitHub
 (0 comments) (3 reactions) (0 assignees)JavaScript (334 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (970 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador