Added api connection check #70

This commit is contained in:
2022-10-16 01:55:20 +02:00
parent 8c3cd1fae7
commit 651482a1b9
9 changed files with 210 additions and 24 deletions

View File

@@ -1,5 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { AuthService } from './services/auth/auth.service';
import { SocketService } from './services/socket/socket.service';
import { ThemeService } from './services/theme/theme.service';
@Component({
@@ -12,9 +13,11 @@ export class AppComponent implements OnInit {
constructor(
public authService: AuthService,
public themeService: ThemeService,
private socket: SocketService
) { }
ngOnInit(): void {
this.socket.startSocket();
this.themeService.loadTheme();
this.themeService.loadMenu();
}