candreoliveira / ngMask

Best Angular mask alternative! No jQuery, pure JS. About ~6kb!
http://candreoliveira.github.io/#/ngMask
ISC License
419 stars 171 forks source link

should have option to create mask name #156

Open sayyaff opened 6 years ago

sayyaff commented 6 years ago

if an error occurs through mask form.model.$error would show as a json object of {mask:"true"}. if we have two mask in one form and if we use ng-messages there is no option to separate this two mask.

Actual result with example Lets say we are having mask for vehicle number plate and contact number for both mask the form.model.$error would be {mask:"true"}

expected output should be for vehicle number plate = {vehicleNo:"true"} for contact number = {contactNo:"true"}

vehicleNo and contactNo should be a custom variable where user can assign