/angular-clamp

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

Primary LanguageJavaScript

Angular Clamp

Examples

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

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