ngx-slimscroll icon indicating copy to clipboard operation
ngx-slimscroll copied to clipboard

AoT support in new version 1.3.2

Open vincent-cm opened this issue 7 years ago • 2 comments

AoT build error

Error: Error at /Project/compiled/node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ngfactory.ts:44:35: Supplied parameters do not match any signature of call target.

Here are the compiled code snippets:

handleEvent(eventName:string,$event:any):boolean {
    var result:boolean = true;
    if ((eventName == 'window:resize')) {
      const pd_sub_0:any = ((<any>this.context.onResize($event)) !== false);
      result = (pd_sub_0 && result);
    }
    return result;
  }

vincent-cm avatar May 05 '17 20:05 vincent-cm

1.3.0 is also uploaded a 1.3.2 version code...

vincent-cm avatar May 05 '17 20:05 vincent-cm

Fix:

change to following at line 245 in /src/directives/slimscroll.directive.ts

@HostListener('window:resize', ['$event'])
    onResize($event: any) {
        this.getBarHeight()
    }

vincent-cm avatar May 05 '17 20:05 vincent-cm