ngx-mask

There are several options for including the ngx-mask in your Angular project.

Install from NPM

Install the ngx-mask library from the command prompt in the root directory of the project:


                        yarn add ngx-mask --save
                    

Import the NgxMaskModule into your module file:


                        import { NgxMaskModule } from 'ngx-mask';
                    

Below is an example of how to use the ngx-mask in your component:

HTML


                        <input type="text" mask="(000) 000-0000" placeholder="Phone number" class="form-input" />
                    

You can customize the mask as needed. Here, the mask format is for a phone number.

Receive the latest updates directly in your inbox!

Be the first to know about new updates and exclusive discounts. No spam, just great offers!

How about

A Custom Project?

With over 7 years of experienced team, we specialize in delivering custom projects for startups, blue-chip companies, and government agencies. We have successfully completed over 250+ projects, providing tailored solutions that meet the unique needs of each client.

Hire Us
Domiex Admin & Dashboards
230+

Total Pages

5+

Layouts

11+

Application

We provide quick support withing one business day to all of our customers.

© Domiex Created & Crafted by SRBThemes.