I'm using ui.mask
to make the input masks. I have a form whose field can receive either a value from a phone or a cell phone.
I currently have a input
similar to this:
<input type="text" ng-model="cliente.telefone" name="telefone" ui-mask="(99)9?9999-9999" />
With this setting in ui-mask
the intention was that if the person filled only 8 digits, the formatting would be (33)3333-3333
; and, if you filled 9, it would look like (33)99999-9999
.
Would you like to make this kind of conditional mask on Ui Mask?