|
- import {
- AfterViewInit,
- Component,
- ElementRef,
- OnInit,
- ViewChild,
- } from '@angular/core';
- import { SocketService } from './shared/services/socket.service';
- import { AlarmSoundService } from './shared/services/alarm-sound.service';
-
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.scss'],
- })
- export class AppComponent implements OnInit {
- title = 'Iot-web-ui';
-
- constructor(private socketService$: SocketService) {}
-
- ngOnInit() {
- this.socketService$.connect();
- }
- }
|