34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
|
|
import { ApiService } from './app.api.service';
|
|
|
|
import { AppMainComponent } from './app.main.component';
|
|
import { VersionCheckService } from './version-check.service';
|
|
|
|
@Component({
|
|
standalone: false,
|
|
selector: 'app-root',
|
|
changeDetection: ChangeDetectionStrategy.Eager,
|
|
templateUrl: './app.component.html',
|
|
})
|
|
export class AppComponent implements OnInit {
|
|
|
|
layoutMode = 'static';
|
|
darkMenu = true;
|
|
profileMode = 'popup'; // or 'inline';
|
|
inputStyle = 'outlined';
|
|
ripple: boolean = true;
|
|
|
|
constructor(private apiService: ApiService, private versionCheck: VersionCheckService) {
|
|
// Initialize your apiService if needed
|
|
}
|
|
|
|
ngOnInit(): void {
|
|
// You can directly apply your settings in this lifecycle method
|
|
// The sidebar menu ripple is the Kendo ripple registered in AppMenuComponent
|
|
this.ripple = true;
|
|
|
|
const baseHref = document.querySelector('base')?.getAttribute('href') ?? '/';
|
|
this.versionCheck.startChecking(baseHref);
|
|
}
|
|
}
|