Closed pr0menade closed 6 years ago
Please provide more info about your usage of component.
I use this theme - http://html.codedthemes.com with Angular 5.1.0 and it's not working
Module used in the html template in the component that was imported in App Module
templateUrl: './admin.component.html' :
<div slimScroll class="main-friend-list scroll-window" width="100%" size="7px" color="rgb(27, 139, 249)" opacity="0.4">
<div (click)="toggleChatInner()" class="media userlist-box" data-id="1" placement="left" ngbTooltip="Josephin Doe">
@NgModule({
imports: [
CommonModule,
ScrollModule,
NgbModule
],
declarations: [
AccordionAnchorDirective,
AccordionLinkDirective,
AccordionDirective,
ModalAnimationComponent,
ModalBasicComponent,
NgbdModalContentComponent,
SpinnerComponent
],
exports: [
AccordionAnchorDirective,
AccordionLinkDirective,
AccordionDirective,
ModalAnimationComponent,
ModalBasicComponent,
NgbdModalContentComponent,
SpinnerComponent,
ScrollModule
],
entryComponents: [
NgbdModalContentComponent
],
providers: [ MenuItems ]
})
export class SharedModule { }
Try to write Slimscroll directive in declaration of your SharedModule
For now it is not reproducing.
works fine just if I added it manually
Current behavior
ERROR Error: Uncaught (in promise): Error: StaticInjectorError[Renderer2]: StaticInjectorError[Renderer2]: NullInjectorError: No provider for Renderer2! Error: StaticInjectorError[Renderer2]: StaticInjectorError[Renderer2]: NullInjectorError: No provider for Renderer2!
Expected behavior
No error and navigate to new page.
Environment