(parent: ControlContainer | null)
| 451 | } |
| 452 | |
| 453 | function checkParentType(parent: ControlContainer | null) { |
| 454 | if (!(parent instanceof NgModelGroup) && parent instanceof AbstractFormGroupDirective) { |
| 455 | throw formGroupNameException(); |
| 456 | } else if (!(parent instanceof NgModelGroup) && !(parent instanceof NgForm)) { |
| 457 | throw modelParentException(); |
| 458 | } |
| 459 | } |
no test coverage detected