Angular 1 directive for input text masking
npm install angular1-text-maskFirst, install it.
``bash`
npm i angular1-text-mask --save
Then, use it as follows:
`html`
type="text/javascript"
src="./node_modules/angular1-text-mask/dist/angular1TextMask.js">
As you can see in the code above, you are passing an object to the text-mask directive.
For more information about the values that the text-mask object accepts, see
this page.
To see an example of a minimal app running with this directive, follow these steps:
1. Clone the repo, git clone git@github.com:text-mask/text-mask.gitcd text-mask
1. npm install
1. npm run angular1:dev
1.
1. Open http://localhost:3000
The code of the example is in angular1/example`.