SyntaxFix
Write A Post
Hire A Developer
Questions
Since we need ellipsis only when the string length is over the limit, it seems more appropriate to add ellipsis by using ng-if than binding.
ng-if
{{ longString | limitTo: 20 }}<span ng-if="longString.length > 20">…</span>