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.

17 lines
415B

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