I want to create a phone format custom directive in angular version 2+, i.e.
whenever user enter text like "1234567895" then it convert it into "(123)456-7895" like that.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mahesh VermaRank #475 · 5.2K reputationPosted Jun 8, 2018, 2:22 AM EDT
Reena Lakra146 reputationPosted Jun 8, 2018, 2:59 AM EDT