overlayScrollbars-nx or overlayScrollbars? #589
Unanswered
benjamin-hoefer-fnt
asked this question in
Q&A
Replies: 1 comment 7 replies
-
Good day @benjamin-hoefer-fnt :) It depends how big the abstraction is, since If youre dealing with just an edge case where the In case you build your own component / directive and outside of it you arent using the |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I am building an abstraction layer for overlayscrollbars in our Angular application.
I am just wondering which way you would recommend?
I initialized overlayscrollbars in two different ways:
OverlayScrollbars({
target: document.querySelector('#myElement') }, {});`this.osInstance.osInitialize(this.elementRef.nativeElement);
Both ways has the same ouptut and it actually works. But what would your recommend way as the first one is the more general approach and the second one is more the Angular approach. Should I stick to the Angular approach as I am building this for an Angular application?
Kind regards
Benjamin
Beta Was this translation helpful? Give feedback.
All reactions