This mask is based on the libphonenumber-js package.Use
maskitoPhoneOptionsGeneratorto create a mask for phone input.
Below is an example of a Hungarian phone mask with an angular validator.
strict option to
false enables non-strict mask mode and allow user to type any country phone number.
countryIsoCode option is optional in that case, but if you specify it, the mask will try to add that country's calling code when you try to insert a phone number without a calling code.
You can load metadata lazily, below is an example of how to do it in Angular.