limit length of text angular 9 pipes code example Example: angular limit string length {{ (str.length>6)? (str | slice:0:6)+'..':(str) }}