import { CommonModule } from '@angular/common' ; import { NgModule , ModuleWithProviders } from '@angular/core' ; import { CarouselComponent } from './carousel.component' ; import { SlideComponent } from './slide.component' ; import { CarouselConfig } from './carousel.config' ; @ NgModule ( { imports : [ CommonModule ] , declarations : [ SlideComponent , CarouselComponent ] , exports : [ SlideComponent , CarouselComponent ] , providers : [ CarouselConfig ] } ) export class CarouselModule { public static forRoot ( ) { return { ngModule : CarouselModule , providers : [ ] } ; } }