You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
544B

  1. import {
  2. AfterViewInit,
  3. Component,
  4. ElementRef,
  5. OnInit,
  6. ViewChild,
  7. } from '@angular/core';
  8. import { SocketService } from './shared/services/socket.service';
  9. import { AlarmSoundService } from './shared/services/alarm-sound.service';
  10. @Component({
  11. selector: 'app-root',
  12. templateUrl: './app.component.html',
  13. styleUrls: ['./app.component.scss'],
  14. })
  15. export class AppComponent implements OnInit {
  16. title = 'Iot-web-ui';
  17. constructor(private socketService$: SocketService) {}
  18. ngOnInit() {
  19. this.socketService$.connect();
  20. }
  21. }