Truncate a string by showing an ellipses in the middle
angular-middle-ellipses by running:
$ npm install --save angular-middle-ellipses
angular-middle-ellipses to your Angular module dependency list:
var MyApp = angular;
Make use of the
middleEllipses filter in a template by passing the desired maximum amount of characters as an argument:
'MyVeryLongString' | middleEllipses:9
If you're having any problem, please raise an issue on GitHub and I'll be happy to help.
Run the test suite by doing:
$ npm test
- Issue Tracker: github.com/jviotti/angular-middle-ellipses/issues
- Source Code: github.com/jviotti/angular-middle-ellipses
Before submitting a PR, please make sure that you include tests, and that jshint runs without any warning:
$ npm run lint
The project is licensed under the MIT license.