mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-13 04:26:16 -08:00
* chore(deps): upgrade Angular to 22.1 and Nx to 23.2 * fix(deps): complete Angular migrations after rebasing on master * fix(ci): use the Node pin for Windows runtime refresh * docs(deps): synchronize the workspace-shell Node requirements
27 lines
807 B
TypeScript
27 lines
807 B
TypeScript
import {
|
|
Component,
|
|
OnInit,
|
|
inject,
|
|
ChangeDetectionStrategy,
|
|
} from '@angular/core';
|
|
import { RemoteControlComponent } from '@iptvnator/ui/remote-control';
|
|
import { TranslateService } from '@ngx-translate/core';
|
|
|
|
@Component({
|
|
imports: [RemoteControlComponent],
|
|
selector: 'app-root',
|
|
templateUrl: './app.html',
|
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection -- Preserve pre-Angular 22 eager checking during the framework upgrade.
|
|
changeDetection: ChangeDetectionStrategy.Eager,
|
|
styleUrl: './app.scss',
|
|
})
|
|
export class App implements OnInit {
|
|
private translate = inject(TranslateService);
|
|
|
|
ngOnInit() {
|
|
// Set default language
|
|
this.translate.setDefaultLang('en');
|
|
this.translate.use('en');
|
|
}
|
|
}
|