Skip to content

dockawash/angular-clamp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Angular Clamp

Installation

To add angular-clamp to your project, first install Bower and run :

bower install angular-clamp

Add --save to add it in your bower.json.

Finally, inject 'directives.clamp' into your module.

Examples

<div clamp="3" ng-bind="text"></div>

The number 3 here means that the number of lines will be displayed

About

Clamp an element by adding ellipsis if content exceeds parent's width

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%