私は AngularJS が初めてで、単純なフラスコ アプリを作成しています。テキスト値を編集する必要がある場所。編集可能なテキスト ボックスを取得できますが、そのテキスト ボックスに正しい値を割り当てて編集可能にするのに苦労しています。
ここに私のAngularコードがあります
var app = angular.module("app", ['xeditable']);
app.controller('myctrl', function($scope, $http) {
$scope.myname ="Howdy" ;
$scope.User=[];
$http.get("/getdata")
.then(function(response){
$scope.User=response.data
})
$scope.edit ={
me : "task goes here"
};
});
ここに私のHTMLコードがあります
<tr ng-repeat="user in User">
<td> {{user.uid }} </td>
<td > <a href="#" editable-text="edit.me" e-label="Edit Task"> {{ user.taskname }} </a>
<input type="image" class="deleteImg" src="static/img/trash_can.png" height="15px" width="18px" name="removeId" value="{{user.uid}}" >
<input type="image" src="static/img/editbtn.svg" height="15px" width="18px" name="editId" value="{{user.uid}}">
</td>
</tr>
ユーザーがクリックしたタスク名を edit.me モデル フィールドに割り当てたい