Angular Xeditable drop down e-ng-change is not working
<p>I'm using <a href="http://vitalets.github.io/angular-xeditable/#editable-table" rel="nofollow">Angular Xeditable</a> api.I need to change the text field's value according to the value of the drop down.But it's not working.Could you tell me why ? Thanks.</p>

<p><strong>Html</strong></p>

<pre><code>&lt;td&gt;
&lt;span editable-select="user.status" e-form="tableform" e-ng-options="s.value as s.text for s in statuses" e-ng-change="setName($data,user)"&gt;
   {{ showStatus(user) }}
&lt;/span&gt;
&lt;/td&gt;
</code></pre>

<p><strong>js</strong></p>

<pre><code> $scope.setName = function (id, user) {
                var selected = [];
                if (id) {
                    selected = $filter('filter')($scope.statuses, { value: id });
                }

                if (selected.length) {
                    user.name = selected[0].text;
                }
            };
</code></pre>

<p><strong>Generated html</strong> : you can see that it has been changed text of the name filed as expected (status3).But it doesn't update the text box properly. In other words it doesn't show on the text box.Why ?</p>

<pre><code>&lt;td&gt;
  &lt;!-- editable username (text with validation) --&gt;
 &lt;span editable-text="user.name" e-form="tableform" onbeforesave="checkName($data, user.id)" class="ng-scope ng-binding editable editable-hide"&gt;
             status3
  &lt;/span&gt;&lt;span class="editable-wrap editable-text ng-scope"&gt;&lt;div class="editable-controls form-group" ng-class="{'has-error': $error}"&gt;&lt;input type="text" class="editable-input form-control ng-pristine ng-valid" ng-model="$data"&gt;&lt;div class="editable-error help-block ng-binding" ng-show="$error" ng-bind="$error" style="display: none;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;
&lt;/td&gt;
</code></pre>

<p><strong>UPDATE :</strong> </p>

<p>I have tried like this.But then it changes all the rows values.So how can I detect only the changed row ?</p>

<pre><code> $scope.setName = function (id, user,form) {
                var selected = [];
                if (id) {
                    selected = $filter('filter')($scope.statuses, { value: id });
                }

                if (selected.length) {
                    for (var i = 0; i &lt; form.$editables.length; i++) {
                        if (form.$editables[i].name === 'user.name') {
                           form.$editables[i].scope.$data ="sampath"                             
                        }
                      }
                }
            }; 
</code></pre>

<p>Here is the <strong><a href="http://jsfiddle.net/sampath_lokuge/NfPcH/13426/" rel="nofollow">JsFiddle</a></strong></p>