(parent: ControlContainer | null)
| 441 | } |
| 442 | |
| 443 | function checkParentType(parent: ControlContainer | null) { |
| 444 | if (!(parent instanceof NgModelGroup) && parent instanceof AbstractFormGroupDirective) { |
| 445 | throw formGroupNameException(); |
| 446 | } else if (!(parent instanceof NgModelGroup) && !(parent instanceof NgForm)) { |
| 447 | throw modelParentException(); |
| 448 | } |
| 449 | } |
no test coverage detected