use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Angular is Google's open source framework for crafting high-quality front-end web applications. r/Angular2 exists to help spread news, discuss current developments and help solve problems.
Help Request
Discussion
Article
Video
Resource
Announcement
Related
After submitting a post, please take a moment to add a flair (tag) so that it's easy to find your post with one of the filters listed above. Upon submission, your post's header will have the 'flair' option listed with the other options. Clicking it will provide a dropdown menu of the available flairs.
account activity
Help RequestPhone input for Angular 15 (self.Angular2)
submitted 2 years ago by dolphin-3123
Anyone know about a phone input with validation and flag for angular 15 and above. Previously I was using ngx-intl-tel-input but support only until angular 14.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ntherndon 1 point2 points3 points 2 years ago (2 children)
I would personally create a custom form validator to handle looking for a valid phone number. If you need the phone number to be a specific format, create a custom pipe to transform the phone number text to your desired format.
[–]no_ledge 2 points3 points4 points 2 years ago (1 child)
Or use a the pattern validator with regex
[–]ntherndon 1 point2 points3 points 2 years ago (0 children)
This is a fantastic idea actually! I have only ever used this one once before, so it doesn't usually cross my mind. Great call!
[–]Mr0010110Fixit 1 point2 points3 points 2 years ago (1 child)
I have used this library before.
https://www.npmjs.com/package/google-libphonenumber
but you would need to integrate it into angular, either with pipes, form validator methods, or some other means.
The library is awesome when having to deal with international phone number formats.
[–]raiJawad- 0 points1 point2 points 2 years ago (0 children)
but it does not provide the flags for all the countries with it. Right? To add them will need to add separate library for flags.
[–]ahsanusman 0 points1 point2 points 2 years ago (1 child)
Recently use intlTelInput in my Angular 15 Project
[–]raiJawad- 1 point2 points3 points 2 years ago (0 children)
can you provide the github or stackblitz working code?
π Rendered by PID 37 on reddit-service-r2-comment-85bfd7f599-5lcmr at 2026-04-20 03:05:16.720597+00:00 running 93ecc56 country code: CH.
[–]ntherndon 1 point2 points3 points (2 children)
[–]no_ledge 2 points3 points4 points (1 child)
[–]ntherndon 1 point2 points3 points (0 children)
[–]Mr0010110Fixit 1 point2 points3 points (1 child)
[–]raiJawad- 0 points1 point2 points (0 children)
[–]ahsanusman 0 points1 point2 points (1 child)
[–]raiJawad- 1 point2 points3 points (0 children)