deepakkoirala / SSN-Mask-AngularJS

Mask your Social Security Number Input Box without changing your model value in AngularJS
2 stars 1 forks source link

ng-model not working while apply ssn-input #2

Open imdadturi opened 6 years ago

imdadturi commented 6 years ago

I have implemented this plugin but when applying ssn-input, everything works but the bound value is undefined my HTML is <input type="text" name="ssn" ng-model="driverData.ssn" placeholder="XXX-XX-XXXX" required="" ssn-input>

the driverData.ssn is undefined. If I remove ssn-input then it works fine but I need masking.

deepakkoirala commented 6 years ago

Try to remove dot from ngModel. It should work.