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

Method check

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

Source from the content-addressed store, hash-verified

870 }
871
872 check(h: string) {
873 if (h === hook) {
874 this.count++;
875 if (this.count > 1) throw new Error(`ng${hook} should be called only once!`);
876 this.parentComp.triggerChangeDetection();
877 }
878 }
879 }
880
881 TestBed.configureTestingModule({imports: [ParentComp, ChildComp]});

Callers 6

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

Calls 1

Tested by

no test coverage detected