Skip to content

Instantly share code, notes, and snippets.

View manunoly's full-sized avatar
🏠
Working from home

Manuel Almaguer manunoly

🏠
Working from home
View GitHub Profile
import {Directive, Attribute} from '@angular/core';
import {NgModel} from '@angular/common';
@Directive({
selector: '[mask]',
host: {
'(keyup)': 'onInputChange()'
}
})
export class Mask {
maskPattern: string;