mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-24 02:06:11 +01:00
Fix post-upgrade errors
This commit is contained in:
parent
d673c512ec
commit
88020acd3e
6 changed files with 17 additions and 25 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, OnDestroy } from '@angular/core';
|
||||
import { Component, OnDestroy, OnInit } from '@angular/core';
|
||||
import { NbMediaBreakpoint, NbMediaBreakpointsService, NbThemeService } from '@nebular/theme';
|
||||
import { takeWhile } from 'rxjs/operators';
|
||||
import { CountryOrderData } from '../../../@core/data/country-order';
|
||||
|
|
@ -22,7 +22,7 @@ import { CountryOrderData } from '../../../@core/data/country-order';
|
|||
</nb-card>
|
||||
`,
|
||||
})
|
||||
export class CountryOrdersComponent implements OnDestroy {
|
||||
export class CountryOrdersComponent implements OnInit, OnDestroy {
|
||||
|
||||
private alive = true;
|
||||
|
||||
|
|
@ -36,6 +36,9 @@ export class CountryOrdersComponent implements OnDestroy {
|
|||
private breakpointService: NbMediaBreakpointsService,
|
||||
private countryOrderService: CountryOrderData) {
|
||||
this.breakpoints = this.breakpointService.getBreakpointsMap();
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.themeService.onMediaQueryChange()
|
||||
.pipe(takeWhile(() => this.alive))
|
||||
.subscribe(([oldValue, newValue]) => {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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> -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue