ngx-slimscroll
ngx-slimscroll copied to clipboard
AoT support in new version 1.3.2
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;
}
1.3.0 is also uploaded a 1.3.2 version code...
Fix:
change to following at line 245 in /src/directives/slimscroll.directive.ts
@HostListener('window:resize', ['$event'])
onResize($event: any) {
this.getBarHeight()
}