This project is a filter for Angularjs to truncate text strings to a set number of characters or words and add ellipses when needed.
<script src="truncate.js"></script>
var myApp = angular.module('myApp', ['truncate']);
<p>
{{ text | characters:25 }} or {{ text | words:5 }}
</p>
By default, a word will not be truncated. Set the optional boolean after the character count to true.
<p>
{{ text | characters:25 :true}}
</p>