Moved injection out of constructor; refactored nedton-editor component and saveAs logic

This commit is contained in:
2025-06-20 23:52:22 -05:00
parent 4193d46d0d
commit 598a66f517
11 changed files with 195 additions and 168 deletions

View File

@@ -1,4 +1,4 @@
import { Component } from '@angular/core';
import { Component, inject } from '@angular/core';
import { Subject, takeUntil } from 'rxjs';
import { InfoBarService } from '../../common/services/editor/info-bar/info-bar.service';
@@ -17,7 +17,9 @@ import { InfoBarService } from '../../common/services/editor/info-bar/info-bar.s
}
})
export class InfoBarComponent {
private unsubscribe = new Subject<void>();
private unsubscribe: Subject<void> = new Subject();
private infoBarService: InfoBarService = inject(InfoBarService);
fpath: string = "";
path: string = "";
@@ -26,9 +28,7 @@ export class InfoBarComponent {
ftype: string = "";
constructor(
private infoBarService: InfoBarService
) {}
constructor() {}
public ngAfterViewInit(): void {