Angular2: Phone/Zip Input Masks?

4,039 views
Skip to first unread message

LDH

unread,
Jan 22, 2016, 8:51:59 PM1/22/16
to AngularJS
Working on a form that needs input masking and formatting.  Porting from an app which uses a jQuery plugin but have no idea how to go about either using this or using something else.  Anyone have luck in this regard?  TIA....

Rafael Bernard Rodrigues Araujo

unread,
Jan 23, 2016, 9:05:00 AM1/23/16
to ang...@googlegroups.com
Howdy!

I use https://github.com/angular-ui/ui-mask successfully.

Take care,

--
Rafael Bernard Rodrigues Araújo
about.me/rafaelbernard

On Fri, Jan 22, 2016 at 11:51 PM, LDH <lisah....@gmail.com> wrote:
Working on a form that needs input masking and formatting.  Porting from an app which uses a jQuery plugin but have no idea how to go about either using this or using something else.  Anyone have luck in this regard?  TIA....

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Alain Mouette

unread,
Jan 23, 2016, 9:37:30 AM1/23/16
to ang...@googlegroups.com

Can you make it accept accents, like your own name "Araújo"?
Or even worse, a name like " d'Avila"?
IMHO there should be an option to accept any international name or word, maybe restricting the alphabet...

-----
Alain Mouette

Rafael Bernard Rodrigues Araujo

unread,
Jan 23, 2016, 10:31:51 AM1/23/16
to ang...@googlegroups.com

I think it's possible as it accepts regular expression.

Alain Mouette

unread,
Jan 23, 2016, 10:52:10 AM1/23/16
to ang...@googlegroups.com

Then it brings another problem, is there a list of all possible characters for names and words with the latin alphabet?

I have been studying Validation and Sanitization lately and it's been very hard to find good informations :(

-----
Alain Mouette

Lisa H

unread,
Jan 23, 2016, 12:00:13 PM1/23/16
to ang...@googlegroups.com
Thanks Rafael, you got this working with Angular 2?

--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/_3WRjft6EUQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.

Rafael Bernard Rodrigues Araujo

unread,
Jan 23, 2016, 4:30:55 PM1/23/16
to ang...@googlegroups.com
On Sat, Jan 23, 2016 at 2:59 PM, Lisa H <lisah....@gmail.com> wrote:
Thanks Rafael, you got this working with Angular 2?

I'm not using angular 2 yet.

rafael

Lisa H

unread,
Jan 25, 2016, 4:17:49 PM1/25/16
to ang...@googlegroups.com

Jesse Kuntz

unread,
Jun 3, 2016, 3:24:46 PM6/3/16
to AngularJS
Hi. I'm trying to use maskedinput in angular 2 as a directive, however I'm having an issue with the field being invalid even when it should be valid. How did you overcome that problem?
Reply all
Reply to author
Forward
0 new messages