ngOnDestroy method

  1. @override
void ngOnDestroy()
override

Executed before the directive is removed from the DOM and destroyed.

See OnDestroy for a full description.

Implementation

@override
void ngOnDestroy() {
  super.ngOnDestroy();
  _subscription?.cancel();
  _subscription = null;
  textareaEl = null;
  popupSourceEl = null;
}