I am trying to bind to the value of an array in my template view. In AngularJS I accomplished this as follows
<div dx-text-box="{bindingOptions: {
value: 'mainTableData[0].{{childControl.FieldName}}'
}}"></div>
This worked fine but fails in Angular2, below is what I tried.
<dx-text-box
[(value)]="mainTableData[0].{{childControl.FieldName}}">
</dx-text-box>
What would be the correct way to do this now? I have tried changing to to a function which returns the correct array value but this also fails.