Truncate text and add ellipses.
20 people use it
Author: A2de0373710ee2a028f2489fe370aeec? sparkalow

angular truncate

This project is a filter for Angularjs to truncate text strings to a set number of characters and add ellipses when needed.

How to use angular truncate

Include the javascript file.

  • Inject the truncate filter into your app module

When outputting text apply the filter html <p> {{text | characters:25}} </p>

comments powered by Disqus
This page was last updated almost 5 years ago.