-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathapp.component.ts
More file actions
30 lines (26 loc) · 893 Bytes
/
app.component.ts
File metadata and controls
30 lines (26 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { Component, HostBinding } from '@angular/core';
import { AuthService, ScreenService, AppInfoService } from './shared/services';
import { ThemeService } from './shared/services/theme.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
standalone: false,
})
export class AppComponent {
@HostBinding('class') get getClass(): string {
return Object.keys(this.screen.sizes).filter((cl) => this.screen.sizes[cl as keyof typeof this.screen.sizes]).join(' ');
}
constructor(
private readonly themeService: ThemeService,
private readonly authService: AuthService,
private readonly screen: ScreenService,
public readonly appInfo: AppInfoService,
) { }
isAuthenticated(): boolean {
return this.authService.loggedIn;
}
ngOnInit(): void {
this.themeService.applyTheme();
}
}