ui-mask defines a input pattern and forces the user to put a value that fit with it.
For instance, with a mask set to (999) 999-9999, the user will ony be able to put some values as (123) 456-7890.