jfcere / ngx-malihu-scrollbar

Angular 2+ scrollbar customization using Malihu jQuery Custom Scrollbar plugin
https://jfcere.github.io/ngx-malihu-scrollbar
MIT License
58 stars 17 forks source link

Question: How did you implement this in your materialize sidnav? #34

Closed theiviaxx closed 6 years ago

theiviaxx commented 6 years ago

I cant seem to get the scrollbar to work using your materialize lib. Just wondering if there was a trick to it or something to look for?

Great projects, btw!!

jfcere commented 6 years ago

@theiviaxx thx!

I used the MalihuScrollbarService to initialize the scrollbar by targeting the sidenav.

You can see the code here: https://github.com/sherweb/ng2-materialize/blob/master/demo-app/src/app/app.component.ts#L47-L49