export { ScrollTo } from './src/scrollTo' ; import { NgModule , ModuleWithProviders } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { ScrollTo } from './src/scrollTo' ; export * from './src/scrollTo' ; @ NgModule ( { imports : [ CommonModule ] , declarations : [ ScrollTo , ] , exports : [ ScrollTo , ] } ) export class ScrollToModule { static forRoot ( ) { return { ngModule : ScrollToModule } ; } }