angular-ellipsis icon indicating copy to clipboard operation
angular-ellipsis copied to clipboard

How to use this plugin in angular 2?

Open blueror815 opened this issue 8 years ago • 2 comments

I need to use this in angular 2. Is there a way to use it in angluar 2?

blueror815 avatar Jun 26 '17 09:06 blueror815

I don't think it's very possible since Angular 1 and Angular 2/4 are significantly different. I also don't find an Angular 2/4 plugin for text ellipsis now. Maybe you can try a framework-independent library like Ellipsity.

haoliangyu avatar Jul 15 '17 19:07 haoliangyu

I couldn't find anything for angular4 either, so I just wrote it myself ;-) (Caveat: Haven't tried it out on many browsers yet):

To install, run: npm install ngx-ellipsis --save Source & Documentation: https://github.com/lentschi/ngx-ellipsis

Alternatively, if you don't require "more" links and stuff like that, you might search the web for "-o-ellipsis-lastline polyfill" ;-)

lentschi avatar Sep 08 '17 15:09 lentschi