(parent: ControlContainer | null)
| 424 | } |
| 425 | |
| 426 | function 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 | } |
no test coverage detected
searching dependent graphs…