angular2-shave
v1.1.0
Published
A modern javascript plugin for truncating text within a html element
Downloads
2
Readme
Angular 2 shave
Angular 2 directive for the shave library - A modern javascript plugin for truncating text within a html element.
Installation
npm install angular2-shave --save
Usage
import { ShaveDirective } from "angular2-shave";
<div [shave]="{character: '✁', classname: 'myclass' }" [shaveHeight]="200">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Asperiores consequuntur deserunt dolore dolores ea esse expedita, recusandae sint totam velit. Beatae deserunt expedita, laborum nobis placeat quibusdam recusandae similique sit!</div>
License
The repository code is open-sourced software licensed under the MIT license.