Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this plugin in angular 2? #83

Open
blueror815 opened this issue Jun 26, 2017 · 2 comments
Open

How to use this plugin in angular 2? #83

blueror815 opened this issue Jun 26, 2017 · 2 comments

Comments

@blueror815
Copy link

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

@haoliangyu
Copy link

haoliangyu commented Jul 15, 2017

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.

@lentschi
Copy link

lentschi commented Sep 8, 2017

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" ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants