Skip to content

Replace @HostListener with host object in component decorators #559

@bracyw

Description

@bracyw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions