npm:
-
Install the package:
npm install ng2-mask
-
Import ng2-mask Module:
import {Ng2MaskModule} from 'ng2-mask'
-
Import module dependency:
... imports: [ ... Ng2MaskModule ... ] ```
-
Use ng2-mask directive:
<input type='text' mask='0000-00-00' />
More examples will be soon available ======================================