jkuri / ngx-slimscroll

Customizable Scrollbar Directive for Angular

Home Page:https://ngx-slimscroll.jankuri.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't Extend SlimScrollDirective

DanTheMan414 opened this issue · comments

Since NgSlimScrollModule is the import, there is no direct way to access SlimScrollDirective. I am trying to create a directive that extends SlimScrollDirective so I can set global scroll options and a few other things too.
Importing SlimScrollDirective from 'ngx-slimscroll/src/ngx-slimscroll/directives/slimscroll.directive' Results in this error
Module parse failed: C:.....\node_modules\ngx-slimscroll\directives\slimscroll.directive.ts
Unexpected character '@' (10:0)
You may need an appropriate loader to handle this file type.
| import 'rxjs/add/operator/map';
|
| @Directive({
| selector: '[slimScroll]',
| exportAs: 'slimScroll'