apollo_developers/bower_components/angular-truncate
venbatechnologies@gmail.com 1809bcf9c9 fixed table for student details
2018-04-23 18:34:11 +05:30
..
demo fixed table for student details 2018-04-23 18:34:11 +05:30
scripts fixed table for student details 2018-04-23 18:34:11 +05:30
src fixed table for student details 2018-04-23 18:34:11 +05:30
test fixed table for student details 2018-04-23 18:34:11 +05:30
.bower.json fixed table for student details 2018-04-23 18:34:11 +05:30
.gitattributes fixed table for student details 2018-04-23 18:34:11 +05:30
.gitignore fixed table for student details 2018-04-23 18:34:11 +05:30
bower.json fixed table for student details 2018-04-23 18:34:11 +05:30
Gruntfile.js fixed table for student details 2018-04-23 18:34:11 +05:30
LICENSE fixed table for student details 2018-04-23 18:34:11 +05:30
package.json fixed table for student details 2018-04-23 18:34:11 +05:30
README.md fixed table for student details 2018-04-23 18:34:11 +05:30

Angular Truncate

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

Demo

How to use angular truncate

###Include the javascript file.

<script src="truncate.js"></script>

###Inject the truncate filter into your app module.

var myApp = angular.module('myApp', ['truncate']);

###When outputting text, apply the filter.

 <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>