File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -50,20 +50,21 @@ Bunch of useful filters for AngularJS *(with no external dependencies!)*
50
50
- [ xor] ( #xor )
51
51
- [ String] ( #string )
52
52
- [ endsWith] ( #endswith )
53
+ - [ latinize] ( #latinize )
53
54
- [ repeat] ( #repeat )
54
55
- [ reverse] ( #reverse-1 )
55
56
- [ slugify] ( #slugify )
56
- - [ latinize ] ( #latinize )
57
+ - [ split ] ( #split )
57
58
- [ startsWith] ( #startswith )
58
59
- [ stripTags] ( #striptags )
59
60
- [ stringular] ( #stringular )
60
- - [ test] ( #test )
61
61
- [ match] ( #match )
62
+ - [ phoneUS] ( #phoneus )
63
+ - [ test] ( #test )
62
64
- [ trim] ( #trim )
63
65
- [ ltrim] ( #ltrim )
64
66
- [ rtrim] ( #rtrim )
65
67
- [ truncate] ( #truncate )
66
- - [ split] ( #split )
67
68
- [ ucfirst] ( #ucfirst )
68
69
- [ uriEncode] ( #uriencode )
69
70
- [ uriComponentEncode] ( #uricomponentencode )
@@ -1080,6 +1081,16 @@ get string with {n} and replace match with enumeration values
1080
1081
<!-- result:
1081
1082
<p>lorem {0} dolor sit amet</p>
1082
1083
```
1084
+
1085
+ ### phoneUS
1086
+ Format a string or a number into a us-style phone number
1087
+ ```html
1088
+ <p>{{ 1234567890 | phoneUS }}</p>
1089
+
1090
+ <!-- result:
1091
+ <p>(123) 456-7890</p>
1092
+ ```
1093
+
1083
1094
###truncate
1084
1095
truncates a string given a specified length, providing a custom string to denote an omission.<br/>
1085
1096
usage: ``` | truncate: [length]: [suffix-optional]: [preserve-optinal]```<br/>
You can’t perform that action at this time.
0 commit comments