feat(core): implement translation
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Component, ElementRef, HostListener, ViewChild } from '@angular/core';
|
||||
import { Component, ElementRef, HostListener, inject, ViewChild } from '@angular/core';
|
||||
import { ThemeSwitchService } from '../../service/theme-switch.service';
|
||||
|
||||
@Component({
|
||||
@@ -9,9 +9,9 @@ import { ThemeSwitchService } from '../../service/theme-switch.service';
|
||||
})
|
||||
export class Background {
|
||||
|
||||
constructor(
|
||||
private themeSwitchService: ThemeSwitchService,
|
||||
) {}
|
||||
private themeSwitchService = inject(ThemeSwitchService);
|
||||
|
||||
constructor() {}
|
||||
|
||||
@ViewChild('canvas', { static: true }) canvasRef!: ElementRef<HTMLCanvasElement>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user