Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
AngularJS xeditable-表格中的重命名按钮远离显示值_Angularjs_X Editable - Fatal编程技术网

AngularJS xeditable-表格中的重命名按钮远离显示值

AngularJS xeditable-表格中的重命名按钮远离显示值,angularjs,x-editable,Angularjs,X Editable,我有下表。显示值的行中的“重命名2”按钮正常工作。但是如何让“重命名1”工作呢 <table ng-app="app" ng-controller="ctrl" border="1"> <tr> <td ng-repeat="v in vendors"> <button ng-click="vendorForm.$show()" ng-hide="vendorForm.$visible">Rename 1</butt

我有下表。显示值的行中的“重命名2”按钮正常工作。但是如何让“重命名1”工作呢

<table ng-app="app" ng-controller="ctrl" border="1">
  <tr>
    <td ng-repeat="v in vendors">
      <button ng-click="vendorForm.$show()" ng-hide="vendorForm.$visible">Rename 1</button>
    </td>
  </tr>
  <tr>
    <td ng-repeat="v in vendors">
      <span editable-text="v.name" e-form="vendorForm">{{v.name}}</span>
      <button ng-click="vendorForm.$show()" ng-hide="vendorForm.$visible">Rename 2</button>
    </td>
  </tr>
</table>
var app = angular.module('app', ['xeditable']);
app.controller('ctrl', function($scope) {
          $scope.vendors = {
            1: { name: "first" },
            2: { name: "second" },
            3: { name: "third" }
          }
});