0

I have a nested component with a dx-text-box. At a curtain time I want to know at the parent comonent if the text box is empty (value) or not. How can I check it? Frank

Frank Mehlhop
  • 1,480
  • 4
  • 25
  • 48

1 Answers1

0

At the parent component ts I use

@ViewChild(MyChildComponent) myChildComponent: MyChildComponent;
...
if (this.myChildComponent.myValueFromTextBox == '') {...}
Frank Mehlhop
  • 1,480
  • 4
  • 25
  • 48