* @description * Adds a new `NgModelGroup` directive instance to the form. * * @param dir The `NgModelGroup` directive instance.
(dir: NgModelGroup)
| 269 | * @param dir The `NgModelGroup` directive instance. |
| 270 | */ |
| 271 | addFormGroup(dir: NgModelGroup): void { |
| 272 | resolvedPromise.then(() => { |
| 273 | const container = this._findContainer(dir.path); |
| 274 | const group = new FormGroup({}); |
| 275 | setUpFormContainer(group, dir); |
| 276 | container.registerControl(dir.name, group); |
| 277 | group.updateValueAndValidity({emitEvent: false}); |
| 278 | }); |
| 279 | } |
| 280 | |
| 281 | /** |
| 282 | * @description |
nothing calls this directly
no test coverage detected