Ember Input Mask
First, install it.
ember install ember-text-mask
Then, use it as follows:
Add the following markup to your template to render a masked input component.
In the template's controller, specify a
📍 For more information about the attributes that the
masked-input component accepts, see the
Unmasking the value that is stored in the model
Text Mask does not provide an option to unmask the model before storing it. You can sanitize the model on your side. See here for details.
To see an example of the code running, follow these steps:
- Clone the repo,
git clone email@example.com:text-mask/text-mask.git
- Open http://localhost:4200
You should have a working demo.