Commit fd376845 authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Browse files

Fix feature model instance subform

parent 3b13b6fd
import { Component } from '@angular/core';
import { ControlContainer, FormGroup } from '@angular/forms';
import { ControlContainer, FormControl, FormGroup } from '@angular/forms';
@Component({
selector: 'app-feature-model-instance-subform',
......@@ -9,11 +9,11 @@ import { ControlContainer, FormGroup } from '@angular/forms';
export class FeatureModelInstanceSubformComponent {
constructor(private controlContainer: ControlContainer) {}
get formGroup() {
get formGroup(): FormGroup {
return this.controlContainer.control as FormGroup;
}
get nameControl() {
return this.formGroup.get('name');
get nameControl(): FormControl {
return this.formGroup.get('name') as FormControl;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment