I\'ve searched here and there, and I am not able to find something specific about formatting a phone number.
Currently, I am retrieving phone numbers form a JSON in
When formatting phone numbers from a JSON data service, this was the simplest solution I could think of.
0{{contact.phone.home | slice:0:1}}-{{contact.phone.home | slice:1:3}}-{{contact.phone.home | slice:3:5}}-{{contact.phone.home | slice:5:8}}
This will format "25565115" into "02-55-65-115"
Hope this helps someone!