Binding inputs to an array of primitives using ngRepeat => uneditable inputs

后端 未结 5 1383
一整个雨季
一整个雨季 2020-12-02 15:46

Here is a demo to my problem.

$scope.myNumbers = [10, 20, 30];

   
5条回答
  •  猫巷女王i
    2020-12-02 16:19

    This problem is now addressed by more recent versions of AngularJS with the track by feature allowing repeaters over primitives:

    The page will not get repainted after each keystroke, which solves the problem of the lost focus. The official AngularJS doc is quite vague and confusing about this.

提交回复
热议问题