I use the limitTo filter for some lines. If the string is smaller, for example, 10 characters, then the string is displayed as is. If the string is longer than 10 characters, I want to display ellipses after cutting the string on the tenth character. Is there an angular shortcut for this? Thanks
eg:
{{main.title | limitTo:10}}
if main.title = "Good day", the output will be: Good day
if main.title = "A Terrible Day", the output will look like this: Awful ...
source share