angular-ui / ui-mask

Mask on an input field so the user can only type pre-determined pattern
https://htmlpreview.github.io/?https://github.com/angular-ui/ui-mask/master/demo/index.html
MIT License
391 stars 258 forks source link

This fixes not showing value in input if model is == 0 #202

Closed bsantanna closed 4 years ago

bsantanna commented 7 years ago

I was having an issue, if my model value was set to 0, the mask directive changes this to an empty string, but showing 0 was mandatory in my case.

Hope this helps, great project.