diff --git a/src/app/@core/core.module.ts b/src/app/@core/core.module.ts index a4592cce..1135104a 100644 --- a/src/app/@core/core.module.ts +++ b/src/app/@core/core.module.ts @@ -153,9 +153,6 @@ export const NB_CORE_PROVIDERS = [ NbAuthModule, ], declarations: [], - providers: [ - ...NB_CORE_PROVIDERS - ] }) export class CoreModule { constructor(@Optional() @SkipSelf() parentModule: CoreModule) { @@ -163,7 +160,7 @@ export class CoreModule { } static forRoot(): ModuleWithProviders { - return { + return { ngModule: CoreModule, providers: [ ...NB_CORE_PROVIDERS, diff --git a/src/app/@theme/theme.module.ts b/src/app/@theme/theme.module.ts index afacd352..9bb44420 100644 --- a/src/app/@theme/theme.module.ts +++ b/src/app/@theme/theme.module.ts @@ -74,18 +74,10 @@ const PIPES = [ imports: [CommonModule, ...NB_MODULES], exports: [CommonModule, ...PIPES, ...COMPONENTS], declarations: [...COMPONENTS, ...PIPES], - providers: [ - ...NbThemeModule.forRoot( - { - name: 'default', - }, - [ DEFAULT_THEME, COSMIC_THEME, CORPORATE_THEME, DARK_THEME ], - ).providers, - ] }) export class ThemeModule { static forRoot(): ModuleWithProviders { - return { + return { ngModule: ThemeModule, providers: [ ...NbThemeModule.forRoot( diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 9db704c4..d55f48ee 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -37,8 +37,8 @@ import { NbChatModule.forRoot({ messageGoogleMapKey: 'AIzaSyA_wNuCzia92MAmdLRzmqitRGvCF7wCZPY', }), - CoreModule, - ThemeModule, + CoreModule.forRoot(), + ThemeModule.forRoot(), ], bootstrap: [AppComponent], }) diff --git a/src/app/pages/maps/gmaps/gmaps.component.ts b/src/app/pages/maps/gmaps/gmaps.component.ts index 2271e76c..17f8f373 100644 --- a/src/app/pages/maps/gmaps/gmaps.component.ts +++ b/src/app/pages/maps/gmaps/gmaps.component.ts @@ -4,14 +4,14 @@ import { Component } from '@angular/core'; selector: 'ngx-gmaps', styleUrls: ['./gmaps.component.scss'], template: ` - + + - + --> `, }) export class GmapsComponent { diff --git a/src/app/pages/tables/smart-table/smart-table.component.html b/src/app/pages/tables/smart-table/smart-table.component.html index 8522c1b9..fea5e268 100644 --- a/src/app/pages/tables/smart-table/smart-table.component.html +++ b/src/app/pages/tables/smart-table/smart-table.component.html @@ -1,10 +1,10 @@ - + + + - + -->