title: Angular 4 kendo Dialog How to read updated values from Dialog
body: <p>I'm sending 'TotalUnits' value into the Dialog and updating value there. I want to read back 'TotalUnits' value in the 'dialog.result'. Some how I'm not seeing updated value. Any help please?</p>
  
  <p>Main Component:</p>
  
  <pre><code>AllocationDialog(data: any) {
      const dialog: DialogRef = this.component.dialogService.open({
        title: ' Allocations',
        content: AllocationComponent,
        actions: [
          { text: 'Save', primary: true, data },
        ],
        width: 500,
        height: 500
      });
      dialog.result.subscribe((dialogResult) =&gt; {
        if (dialogResult instanceof DialogCloseResult) {
          console.log('close');
        } else {
          console.log('action', dialogResult);
        }
      });
  
      const allocationsInfo = dialog.content.instance;
      allocationsInfo.TotalUnits = data.TotalUnits;
  }
  </code></pre>
  
  <p>AllocationComponent  -   Dialog:</p>
  
  <pre><code>@Input() public TotalUnits: number;
  
  &lt;input kendoTextBox [(ngModel)]="TotalUnits" /&gt;
  </code></pre>