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

Method check

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

Source from the content-addressed store, hash-verified

896 }
897
898 check(h: string) {
899 if (h === hook) {
900 this.count++;
901 if (this.count > 1) throw new Error(`ng${hook} should be called only once!`);
902 this.parentComp.triggerChangeDetection();
903 }
904 }
905 }
906
907 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