ngx-mask icon indicating copy to clipboard operation
ngx-mask copied to clipboard

Add ability to pass patterns/config to MaskPipe

Open LaserUnicorns opened this issue 8 years ago • 3 comments

Right now pipe accepts value and mask, if would be nice to pass optional patterns object or full config to pipe

LaserUnicorns avatar Oct 03 '18 07:10 LaserUnicorns

Hi @LaserUnicorns please send example.

pryimakalex avatar Oct 03 '18 08:10 pryimakalex

So basically i want this pipe usage in template

<span>
  {{ value | mask:myMask:myPatterns }}
</span>

or

<span>
  {{ value | mask:myMask:myConfig }}
</span>

This is similar to mask directive, where I can supply custom patterns

<input type='text' [patterns]="customPatterns" mask="(000-000)" >

LaserUnicorns avatar Oct 03 '18 09:10 LaserUnicorns

@LaserUnicorns Hi, try version 6.4.12.

pryimakalex avatar Oct 04 '18 15:10 pryimakalex