mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
docs(ngRepeat): update step_02.ngdoc with challenge
Add a simple task for the user to better understand ng-repeat. Close #8757
This commit is contained in:
committed by
Caitlin Potter
parent
8f14b726b0
commit
e5e62a5479
@@ -250,6 +250,8 @@ browser is limited, which results in your karma tests running extremely slow.
|
||||
<tr><th>row number</th></tr>
|
||||
<tr ng-repeat="i in [0, 1, 2, 3, 4, 5, 6, 7]"><td>{{i+1}}</td></tr>
|
||||
</table>
|
||||
|
||||
Extra points: try and make an 8x8 table using an additional ng-repeat.
|
||||
|
||||
* Make the unit test fail by changing `expect(scope.phones.length).toBe(3)` to instead use `toBe(4)`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user