Varun
Varun

Reputation: 3735

Masking a text field in Angular 2

I want to apply masking to fields like phone number, credit card and SSN e.t.c in Angular 2. I can't find any solution.

Masking of a field should occur when the correct number of digits entered, for example, if the user enters 10 digits for a phone number. And if the number of digits is not appropriate then masking should occur when user clicks away from field like blur.

It would be great if anyone can share a solution for this.

Thanks.

Upvotes: 0

Views: 2723

Answers (0)

Related Questions