We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e32bd52 + c1181ce commit 0d3cb0aCopy full SHA for 0d3cb0a
src/app/fields/textarea/textarea.component.ts
@@ -8,11 +8,19 @@ import { Parameter } from '../../../api';
8
styleUrls: ['./textarea.component.scss']
9
})
10
export class TextareaComponent implements OnInit {
11
- @Input() data: Parameter;
12
@Input() form: FormGroup;
13
-
14
textAreaControl: FormControl;
15
+ // tslint:disable-next-line:variable-name
+ @Input() _data: Parameter;
16
+ @Input() set data(value: Parameter) {
17
+ this._data = value;
18
+ this.textAreaControl.setValue(value.value);
19
+ }
20
+ get data(): Parameter {
21
+ return this._data;
22
23
+
24
constructor() {
25
this.textAreaControl = new FormControl('');
26
this.textAreaControl.valueChanges.subscribe(newValue => {
0 commit comments