mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 16:00:14 +01:00
refactor(iot): remove unused service
This commit is contained in:
parent
6adefaf9e4
commit
e17b016197
1 changed files with 1 additions and 13 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
import { Component, OnDestroy } from '@angular/core';
|
import { Component, OnDestroy } from '@angular/core';
|
||||||
import { NbThemeService, NbMediaBreakpoint, NbMediaBreakpointsService } from '@nebular/theme';
|
|
||||||
import { takeWhile } from 'rxjs/operators';
|
import { takeWhile } from 'rxjs/operators';
|
||||||
import { forkJoin } from 'rxjs';
|
import { forkJoin } from 'rxjs';
|
||||||
|
|
||||||
|
|
@ -16,19 +15,8 @@ export class ContactsComponent implements OnDestroy {
|
||||||
|
|
||||||
contacts: any[];
|
contacts: any[];
|
||||||
recent: any[];
|
recent: any[];
|
||||||
breakpoint: NbMediaBreakpoint;
|
|
||||||
breakpoints: any;
|
|
||||||
|
|
||||||
constructor(private userService: UserData,
|
|
||||||
private themeService: NbThemeService,
|
|
||||||
private breakpointService: NbMediaBreakpointsService) {
|
|
||||||
this.breakpoints = this.breakpointService.getBreakpointsMap();
|
|
||||||
this.themeService.onMediaQueryChange()
|
|
||||||
.pipe(takeWhile(() => this.alive))
|
|
||||||
.subscribe(([oldValue, newValue]) => {
|
|
||||||
this.breakpoint = newValue;
|
|
||||||
});
|
|
||||||
|
|
||||||
|
constructor(private userService: UserData) {
|
||||||
forkJoin(
|
forkJoin(
|
||||||
this.userService.getContacts(),
|
this.userService.getContacts(),
|
||||||
this.userService.getRecentUsers(),
|
this.userService.getRecentUsers(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue