igorescobar / jQuery-Mask-Plugin

A jQuery Plugin to make masks on form fields and HTML elements.

Home Page:http://igorescobar.github.io/jQuery-Mask-Plugin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to Integrate jQuery Mask Plugin with Angular.js?

igorescobar opened this issue · comments

I've done a simple example showing how to integrate jQuery Mask Plugin with Angular.js:
http://jsfiddle.net/igorescobar/4ezow2p7/

This fiddle is not working. Tested on
Chromium Version 55.0.2883.75
and
Firefox ESR 45

Built on 8.6, running on Debian 8.6 (64-bit)

@arimourao
screen shot 2017-01-02 at 17 44 49

Tested on Chrome, Safari and Firefox (Mac). Is it giving you any error?

@igorescobar Here is a more complete example: http://jsfiddle.net/fdeslandes/zsg9wwhL/1/

You used a pretty old version of angular in your example, I updated it to use the newer syntax, which is easier to understand.

How could I use it with angular 2? Thanks

Hello, there's an error with de parameter "reverse" when I integrate it with angular:
http://jsfiddle.net/4ezow2p7/205/

for example test with 10.0 or 0.5

fdeslandes-wk ... dude! Your code is not easier to understand. Still is a pretty nice example! Thanks

@prometeomcclellan I was talking about a newer angularJs syntax, which is easier to understand compared to the older version in which the example was written when I contributed the example.

My code adds some more use cases that were not covered, so of course it is not easier to understand.