Yanlış bir şey yaptığımı hissediyorum, ancak bu davranış tuhaf görünüyor. Dinamik olarak denetleyicideki verilere dayanan bir tablo oluşturur. Tablodaki hücrelerden birini girdiğimde, odağı hemen bir sonraki hücreye değiştirir ve karakteri de ekler.Angularjs tablo hücresi yineleme
Konuyu jsfiddle olarak yeniden üreten çok basit bir örneğim var.
http://jsfiddle.net/rgaskill/Aksec/15/
<div ng-app="miniapp">
<div ng-controller="Matrix">
<h1>Enter a value in the fist cell.</h1>
<table>
<thead>
<tr>
<th>Row Name</th>
<th>0</th>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
<th>5</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="(row, values) in valueMap">
<td>{{row}}</td>
<td ng-repeat="(col, val) in values" ><input type="text" ng-model="valueMap[row][col]"></input></td>
</tr>
</tbody>
</table>
</div>
</div>
bu garip davranışa neden olan nedir
var app = angular.module('miniapp', []);
function Matrix($scope) {
$scope.valueMap = {
aRow: {
'0': '',
'1': '',
'2': '',
'3': '',
'4': '',
'5': ''
}
};
}
?