Fix post-upgrade errors

This commit is contained in:
eugene-sinitsyn 2020-03-03 15:41:09 +03:00 committed by Maksim Karatkevich
parent bb1a759acf
commit 8d749466f9
5 changed files with 12 additions and 23 deletions

View file

@ -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<CoreModule> {
return <ModuleWithProviders>{
return {
ngModule: CoreModule,
providers: [
...NB_CORE_PROVIDERS,

View file

@ -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<ThemeModule> {
return <ModuleWithProviders>{
return {
ngModule: ThemeModule,
providers: [
...NbThemeModule.forRoot(

View file

@ -37,8 +37,8 @@ import {
NbChatModule.forRoot({
messageGoogleMapKey: 'AIzaSyA_wNuCzia92MAmdLRzmqitRGvCF7wCZPY',
}),
CoreModule,
ThemeModule,
CoreModule.forRoot(),
ThemeModule.forRoot(),
],
bootstrap: [AppComponent],
})

View file

@ -4,14 +4,14 @@ import { Component } from '@angular/core';
selector: 'ngx-gmaps',
styleUrls: ['./gmaps.component.scss'],
template: `
<nb-card>
<!-- <nb-card>
<nb-card-header>Google Maps</nb-card-header>
<nb-card-body>
<!-- <agm-map [latitude]="lat" [longitude]="lng">
<agm-map [latitude]="lat" [longitude]="lng">
<agm-marker [latitude]="lat" [longitude]="lng"></agm-marker>
</agm-map> -->
</agm-map>
</nb-card-body>
</nb-card>
</nb-card> -->
`,
})
export class GmapsComponent {

View file

@ -1,10 +1,10 @@
<nb-card>
<!-- <nb-card>
<nb-card-header>
Smart Table
</nb-card-header>
<nb-card-body>
<!-- <ng2-smart-table [settings]="settings" [source]="source" (deleteConfirm)="onDeleteConfirm($event)">
</ng2-smart-table> -->
<ng2-smart-table [settings]="settings" [source]="source" (deleteConfirm)="onDeleteConfirm($event)">
</ng2-smart-table>
</nb-card-body>
</nb-card>
</nb-card> -->