2022-10-16 00:13:03 +02:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
import { AuthService } from './services/auth/auth.service';
|
2022-10-16 01:55:20 +02:00
|
|
|
import { SocketService } from './services/socket/socket.service';
|
2022-10-16 00:13:03 +02:00
|
|
|
import { ThemeService } from './services/theme/theme.service';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-root',
|
|
|
|
templateUrl: './app.component.html',
|
|
|
|
styleUrls: ['./app.component.scss']
|
|
|
|
})
|
|
|
|
export class AppComponent implements OnInit {
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
public authService: AuthService,
|
|
|
|
public themeService: ThemeService,
|
2022-10-16 01:55:20 +02:00
|
|
|
private socket: SocketService
|
2022-10-16 00:13:03 +02:00
|
|
|
) { }
|
|
|
|
|
|
|
|
ngOnInit(): void {
|
2022-10-16 01:55:20 +02:00
|
|
|
this.socket.startSocket();
|
2022-10-16 00:13:03 +02:00
|
|
|
this.themeService.loadTheme();
|
|
|
|
this.themeService.loadMenu();
|
|
|
|
}
|
|
|
|
}
|