added core services: entry, tmdb, toggle

This commit is contained in:
X4Lo committed 2024-03-31 04:12:49 +00:00
1 parent 08959c46b1
commit daa948b9b9
4 files changed
+152

No files matched your search

+18
View File
@@ -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.'
);
}
}
}