dss-mask
v0.0.3
Published
The `mask` directive allows you to define an **input mask pattern** so that values typed (or assigned via `ngModel`) are automatically formatted according to the mask.
Readme
Input Mask Directive
The mask directive allows you to define an input mask pattern so that values typed (or assigned via ngModel) are automatically formatted according to the mask.
📦 Installation
Install the package from npm:
npm install dss-Mask
import { NgModule } from '@angular/core';
import { Mask } from 'your-mask-directive';
@NgModule({
declarations: [],
imports: [Mask],
exports: [Mask]
})
export class SharedModule {}
##Syntax
```HTML
<input type="text" [(ngModel)]="entity.mask" mask="(99) 99999-99999" />