Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 407 Bytes

File metadata and controls

19 lines (13 loc) · 407 Bytes

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