bartholomej / ngx-scrolltop

Lightweight, Material Design inspired "go to top button". No dependencies. Pure Angular!
http://bartholomej.github.io/ngx-scrolltop/
MIT License
30 stars 3 forks source link

Support standalone component to decrease my bundle size #85

Closed Celtian closed 5 months ago

Celtian commented 1 year ago

Is your feature request related to a problem? Please describe. NgxScrollTopModule is increasing my bundle size for no reason. I just want to use NgxScrollTopDirective without importing NgxScrollTopComponent.

Describe the solution you'd like Please make NgxScrollTopDirective & NgxScrollTopComponent standalone... NgxScrollTopModule can be still available (Same like CommonModule in @angular/core)

Describe alternatives you've considered None

Additional context None

bartholomej commented 11 months ago

Hi @Celtian , Here you go:) Just try version 7 beta and let me know.

yarn add ngx-scrolltop@beta

If all goes well, I'll release a stable major version. Thanks! ;)

bartholomej commented 11 months ago

This is the new pre-release of ngx-scrolltop 17.0.0-next.0. (Yes I want to skip 10 major versions now 😀)

yarn add ngx-scrolltop@next

Setup instructions for standalone components are here and it's easy :)