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

Method check

packages/core/test/acceptance/change_detection_spec.ts:914–920  ·  view source on GitHub ↗
(h: string)

Source from the content-addressed store, hash-verified

912 }
913
914 check(h: string) {
915 if (h === hook) {
916 this.count++;
917 if (this.count > 1) throw new Error(`ng${hook} should be called only once!`);
918 this.parentComp.triggerChangeDetection();
919 }
920 }
921 }
922
923 TestBed.configureTestingModule({declarations: [ParentComp, ChildComp]});

Callers 6

ngOnInitMethod · 0.95
ngAfterContentInitMethod · 0.95
ngAfterViewInitMethod · 0.95
ngOnChangesMethod · 0.95

Calls 1

Tested by

no test coverage detected