Fast-Ellipsis is a AngularJS library, it can be used to truncate the text displayed in the JavaScript container. It have the following feature:
- Truncate the text.
- Add symbol or text as the end to mark text truncated.
- HTML/ normal text supported as main and symbol text.
- Update version only in bower.json.
- Added demo example.
- Added readme file.
Install the library.
$ cd project_path
$ npm install fast-ellipsis
OR
$ cd project_path
$ bower install fast-ellipsis
Add the library to main module.
angular.module('demoApp', ['thls.fast-ellipsis'])
Update the the HTML file:
<p fast-ellipsis ellipsis-text="HTML/normal text"></p>
<p fast-ellipsis ellipsis-text="HTML/normal text" ellipsis-truncate-text = "HTML/Text truncate texts."></p>
MIT