assisrafael/angular-input-masks

Dynamic masks

Open

#235 ouverte le 17 nov. 2016

Voir sur GitHub
 (0 commentaires) (3 réactions) (0 assignés)JavaScript (334 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (970 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur