Browse Source

destroy subcribe

features/custom-map
PhamY0601 1 year ago
parent
commit
66929b65e9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/app/modules/overview/map/map.component.ts

+ 2
- 2
src/app/modules/overview/map/map.component.ts View File

@@ -1,4 +1,4 @@
import { AfterViewInit, Component, OnInit } from '@angular/core';
import {AfterViewInit, Component, OnDestroy, OnInit} from '@angular/core';
import * as L from 'leaflet';
import {Subscription} from "rxjs";
import {SocketService} from "../../../shared/services/socket.service";
@@ -8,7 +8,7 @@ import {SocketService} from "../../../shared/services/socket.service";
templateUrl: './map.component.html',
styleUrls: ['./map.component.scss']
})
export class MapComponent implements OnInit, AfterViewInit {
export class MapComponent implements OnInit, AfterViewInit, OnDestroy {
private map: any;
houseIcon = L.icon({
iconUrl: '../../../../assets/images/icon.png',

Loading…
Cancel
Save