MCPcopy Create free account
hub / github.com/angular/components / constructor

Method constructor

src/cdk/menu/pointer-focus-tracker.ts:39–49  ·  view source on GitHub ↗
(
    private _renderer: Renderer2,
    private readonly _items: QueryList<T>,
  )

Source from the content-addressed store, hash-verified

37 previousElement?: T;
38
39 constructor(
40 private _renderer: Renderer2,
41 private readonly _items: QueryList<T>,
42 ) {
43 this._bindEvents();
44 this.entered.subscribe(element => (this.activeElement = element));
45 this.exited.subscribe(() => {
46 this.previousElement = this.activeElement;
47 this.activeElement = undefined;
48 });
49 }
50
51 /** Stop the managers listeners. */
52 destroy() {

Callers

nothing calls this directly

Calls 1

_bindEventsMethod · 0.95

Tested by

no test coverage detected