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

4

1 回答 1

0

在我使用的父组件 ts

@ViewChild(MyChildComponent) myChildComponent: MyChildComponent;
...
if (this.myChildComponent.myValueFromTextBox == '') {...}

于 2018-09-05T15:23:25.113 回答