MCPcopy Index your code
hub / github.com/angular/angular / ngOnInit

Method ngOnInit

packages/core/test/debug/debug_node_spec.ts:1421–1425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1419 private readonly element: ElementRef,
1420 ) {}
1421 ngOnInit() {
1422 this.zone.runOutsideAngular(() => {
1423 this.element.nativeElement.addEventListener('mouseenter', listener);
1424 });
1425 }
1426 }
1427 const fixture = TestBed.configureTestingModule({declarations: [MyComp]}).createComponent(
1428 MyComp,

Callers

nothing calls this directly

Calls 2

addEventListenerMethod · 0.65
runOutsideAngularMethod · 0.45

Tested by

no test coverage detected