angular-truncate

Truncate text and add ellipses.
Homepage:
20 people use it
Author: A2de0373710ee2a028f2489fe370aeec?d=https%3a%2f%2fidenticons.github.com%2fc4c3dbb1f67972cbc2919cbe88a83441 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 over 4 years ago.