Closed marcoshier closed 5 years ago
Hi @shierone, did you add MalihuScrollbarModule.forRoot()
to the list of imports in your AppModule
?
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
+ import { MalihuScrollbarModule } from 'ngx-malihu-scrollbar';
import { AppComponent } from './app.component';
@NgModule({
imports: [
CommonModule,
+ MalihuScrollbarModule.forRoot(),
],
declarations: [AppComponent],
bootstrap: [AppComponent],
})
export class AppModule { }
Close for inactivity, please reopen if there is anything.
Hi, I've tried to import the script into my angular project and I want to use it in a component with the Service method. But after following the instructions the compiler gives me this error:
error TS2304: Cannot find name 'MalihuScrollbarService'
refering to the MalihuScrollbarService in the constructor (private mScrollbarService: MalihuScrollbarService)
Still quite new to angular by the way.