I am looking to implement a restriction on the amount of text displayed by an angular expression that returns a block of text.
The length of the text can vary greatly, ranging from 1 character to over 3,000. I want to limit the displayed text and potentially add ellipses at the end, using either an image or something like <div>...</div>
.
What would be the most effective approach for achieving this?
Is there an angular method for accomplishing this, such as a filter?
Or would it be better to use a directive instead?
<div text-length-limit>{{description}}</div>