AngularJS-translation icon indicating copy to clipboard operation
AngularJS-translation copied to clipboard

ch2 两个拼写错误

Open ambar opened this issue 12 years ago • 1 comments

初学 AngularJS,发现两个错误:

  • 第一次出现的 $scope.needed = $scope.startingEstimate * 10; 两个属性应该都引用自 $scope.funding ——这个例子比较奇怪,前后不一致,没有进行解释,然后在后面出现的例子又有不是从 funding 引用的。
  • ng-class='selected: $index==selectedRow' 应该是 ng-class="{selected: $index==selectedRow}"

ambar avatar May 08 '13 15:05 ambar

两段代码是书中原文。我手中的电子版原文有不少类似问题。待我有时间我会验证一下并纠正。谢谢

aztack avatar May 12 '13 12:05 aztack