How to truncate text in Angular2?

Is there a way that I could limit the length of the string to a number characters?
for e.g: I have to limit a title length to 20 {{ data.title }}.

Is there any pipe or filter to limit the length?

11 Answers
11

Leave a Comment