import { ModuleWithProviders , NgModule } from '@angular/core' ; import { ContentApiService } from './services/content-api.service' ; import { NodePermissionService } from './services/node-permission.service' ; import { AppService } from './services/app.service' ; import { ContextActionsModule } from './directives/contextmenu/contextmenu.module' ; @ NgModule ( { imports : [ ContextActionsModule ] , exports : [ ContextActionsModule ] } ) export class SharedModule { static forRoot ( ) { return { ngModule : SharedModule , providers : [ ContentApiService , NodePermissionService , AppService ] } ; } }