added core services: entry, tmdb, toggle
This commit is contained in:
1 parent
08959c46b1
commit
daa948b9b9
4 files changed
+152
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { NgModule, Optional, SkipSelf } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { TmdbService } from './services/tmdb.service';
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule],
|
||||
providers: [TmdbService],
|
||||
})
|
||||
export class CoreModule {
|
||||
constructor(@Optional() @SkipSelf() parentModule?: CoreModule) {
|
||||
if (parentModule) {
|
||||
throw new Error(
|
||||
'CoreModule is already loaded. Import it in the AppModule only.'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user