Description
Several components use @HostListener('window:resize') instead of the host property in the component decorator. Affected: BmsDebugPage, BmsAtAGlance, BmsSegmentView, CellView, AppNavBar.
Acceptance Criteria
- All @HostListener usages replaced with host property in component decorator
- All @HostBinding usages replaced with host property bindings
- Build and lint pass
Proposed Solution
Replace @HostListener('window:resize', ['$event']) with host: { '(window:resize)': 'onResize($event)' } in each component's decorator. Remove the @HostListener import where no longer needed.
Description
Several components use
@HostListener('window:resize')instead of thehostproperty in the component decorator. Affected: BmsDebugPage, BmsAtAGlance, BmsSegmentView, CellView, AppNavBar.Acceptance Criteria
Proposed Solution
Replace
@HostListener('window:resize', ['$event'])withhost: { '(window:resize)': 'onResize($event)' }in each component's decorator. Remove the @HostListener import where no longer needed.