String
You can check the module import here.
leftpad
Returns a left-padded string.
File
Usage
rightpad
Returns a right-padded string.
File
Usage
pad
Returns a padded string. It starts with left and then right.
File
Usage
trim
Trims the string.
File
Usage
split
Split a string into an array.
File
Usage
replace
This is the String#replace() function, if you want to know more about the arguments, check the official documentation.
File
match
This is the String#match() function, if you want to know more about the arguments, check the official documentation.
File
test
This is the String#test() function, if you want to know more about the arguments, check the official documentation.
File
newlines
Replaces the \n, \r and \r\n into <br />. This function returns HTML so you need to use it
with the [innerHTML] binding.
File
Usage
capitalize
Capitalize the string. If the argument is true, all the words will be capitalized.
File
Usage
upperfirst
Uppercase the first letter.
File
Usage
template
Template string.
File
Usage
encodeuri
The encodeURI function.
File
encodeuricomponent
The encodeURIComponent function.
File
decodeuri
The decodeURI function.
File
decodeuricomponent
The decodeURIComponent function.
File
repeat
Repeats a string.
File
Usage
truncate
Truncate a string.
Arguments: (size, suffix, preserve)
File
Usage
slugify
Slugify a string.
Arguments: (string)
File
Usage
striptags
strip out html tags from string Important: this Pipe jobs it's not to replace innerHtml directive, it's only for tiny plain text
Arguments: ( string, ends, case-sensitive[optional] )
File
Usage
latinize
Remove accents/diacritics from a string
File
Usage
wrap
Wrap a string with another string
Arguments: ( string, string, string[optional] )
File
Usage
with
With pipe check string has start and/or ends
Arguments: ( string, start[optional], ends[optional], case-sensitive[optional] )
File
Usage
reversestr
Reverse a string.
File
Usage
Last updated
Was this helpful?