Pipes

Use pipes to transform strings, dates and other data for display. Pipes are simple functions you can use in template expressions to accept an input value and return a transformed value.

Truncate Pipe

The truncate pipe helps you to shorten strings to a given length and append three dots(...). Use it in views where you need to make sure that the given content not exceed in length.

{{ exampleString | truncate }}
or
{{ exampleString | truncate:45 }}

Last updated