assisrafael/angular-input-masks

Dynamic masks

Aberta

#235 aberto em 17 de nov. de 2016

 (0 comentário) (3 reações) (0 responsável)JavaScript (330 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (955 estrelas)
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