Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WatchHeightDirective

Emits the host's height OnInit and when the window resizes.

Hierarchy

  • WatchHeightDirective

Implements

  • AfterViewInit
  • OnDestroy
  • OnInit

Index

Constructors

constructor

Properties

Private el

el: ElementRef

the reference to the host element

Private events

used to listen to the resize event

heightChange

heightChange: EventEmitter<string> = new EventEmitter()

Event emitter output. Emits the pixle hieght of the WatchHeightDirective's height.

resizeSubscription

resizeSubscription: Subscription

Holds the subscription for the events's resize Observable.

Methods

Private listenToResize

  • listenToResize(): void

ngAfterViewInit

  • ngAfterViewInit(): void

ngOnDestroy

  • ngOnDestroy(): void

ngOnInit

  • ngOnInit(): void

Private updateHeight

  • updateHeight(): void

Generated using TypeDoc