MCPcopy Create free account
hub / github.com/angular/angular / ngOnInit

Method ngOnInit

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

Source from the content-addressed store, hash-verified

1354 private readonly element: ElementRef,
1355 ) {}
1356 ngOnInit() {
1357 this.zone.runOutsideAngular(() => {
1358 this.element.nativeElement.addEventListener('mouseenter', listener);
1359 });
1360 }
1361 }
1362 const fixture = TestBed.createComponent(MyComp);
1363 fixture.detectChanges();

Callers

nothing calls this directly

Calls 2

addEventListenerMethod · 0.65
runOutsideAngularMethod · 0.45

Tested by

no test coverage detected