-
-
Save coryrylan/f984e5478513be38a169994111141a39 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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