ionic2-mask-directive
ionic2-mask-directive copied to clipboard
[Question] Condition in mask
Do you know if have a way to make a condition with the mask? For example: I have an input to search with two types, one like: 9999999-99.9999.9.99.9999 and the other: 9999/AA. I would like to put these masks in the same input. Do you know if I can do this?
How do you will determinate which mask to use?
I guess it would be easy, @tiaguinho. You could think of it as a person inputting their phone number, based on the country the format would differ.