Angular Nebular nbInput - Add mask into input fields

1.9k Views Asked by At

I need to add mask into input text fields (phone, date, email, etc).

I'm using Angular and Nebular 5.0.0, and according to the official documentation, there is no mask attribute available.

I had tried to add ngx-mask-version(8.1.7) as follow, but doesn't worked.

<input type="text" nbInput mask="(00)00000-0000" class="form-control" [(ngModel)]="model.phone" name="phone">

Is possible to integrate ngx-mask and Nebular nbInput components? If is not possible, how can I add mask into my input fields?

1

There are 1 best solutions below

0
On BEST ANSWER

The problem was solved, the problem was in my environment. I need to delete node_modules folder and build the project again.