Skip to content

Instantly share code, notes, and snippets.

@coryrylan
Created May 16, 2017 19:20
Show Gist options
  • Select an option

  • Save coryrylan/f984e5478513be38a169994111141a39 to your computer and use it in GitHub Desktop.

Select an option

Save coryrylan/f984e5478513be38a169994111141a39 to your computer and use it in GitHub Desktop.
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { VideoDataService } from './video-data.service';
@NgModule({
imports: [CommonModule]
})
export class CoreModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: CoreModule,
providers: [
VideoDataService
]
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment