Truncate Pipe Example


{{'this is a not so long string' | truncate}}

{{'this is a not so long string' | truncate: 20}}

{{'this is a not so long string' | truncate: 20: '.'}}

Code