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

Function checkParentType

packages/forms/src/directives/ng_model.ts:426–432  ·  view source on GitHub ↗
(parent: ControlContainer | null)

Source from the content-addressed store, hash-verified

424}
425
426function checkParentType(parent: ControlContainer | null) {
427 if (!(parent instanceof NgModelGroup) && parent instanceof AbstractFormGroupDirective) {
428 throw formGroupNameException();
429 } else if (!(parent instanceof NgModelGroup) && !(parent instanceof NgForm)) {
430 throw modelParentException();
431 }
432}

Callers 1

_checkForErrorsMethod · 0.70

Calls 2

formGroupNameExceptionFunction · 0.90
modelParentExceptionFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…