assisrafael/angular-input-masks

Dynamic masks

Open

#235 geöffnet am 17. Nov. 2016

Auf GitHub ansehen
 (0 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)JavaScript (334 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (970 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide