Tomas Rimkus

Results 312 comments of Tomas Rimkus

It doesn't work with `NgModule`. It only works with standalone components.

This issue is about libraries. Relying on modules to export standalone components is just a short-term workaround, not a proper solution for library authors.

Here is CodeSandbox reproduction: https://codesandbox.io/p/sandbox/unruffled-cache-8grp6q?file=%2Fsrc%2Fapp%2Fapp.component.scss%3A19%2C4

- horizontal scrollbar works fine even when scroll content is using `display: block`. [The margin/padding issue](https://github.com/MurhafSousli/ngx-scrollbar/blob/b3d1421c0fe20e04709cd69329d5faa8d6ee17aa/projects/ngx-scrollbar-demo/src/app/example5/example5.component.scss#L23) is a problem with the example number 5 itself, not the library. The example...

Yes, it causes the same issue. Anyway, what kind of issue exactly are you trying to address with those kind of workarounds/hacks?

No, but you can just test it yourself as well. I have provided CodeSandbox reproduction above.

You have to update your Angular version.

@tmtron If you are looking for a good state management library which works with any frontend framework, you should take a look at [Elf](https://ngneat.github.io/elf/).

You can include the module based on your environment: ```ts @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, BrowserAnimationsModule, AppRoutingModule, ...(!environment.production ? [] : [ NgxGoogleAnalyticsModule.forRoot('UA-111111111-1'), NgxGoogleAnalyticsRouterModule.forRoot() ]) ], bootstrap:...