Use the input
element with the ng-model
directive to have a two-way binding:
...
<input type="text" ng-model="ctrl.selected.text">
...
The @NgTwoWay annotation is only used in components or controllers, used in class DataValue
it is ignored.