Skip to content
Browse files

update doc to use each instead of collection in array_controller example

  • Loading branch information...
1 parent eea04a5 commit dd8e2d893989d68f7a902d54f6359a6416b48f06 @midu midu committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 packages/ember-runtime/lib/controllers/array_controller.js
View
6 packages/ember-runtime/lib/controllers/array_controller.js
@@ -26,9 +26,9 @@ require('ember-runtime/system/array_proxy');
Then, create a view that binds to your new controller:
- {{#collection contentBinding="MyApp.listController"}}
- {{content.firstName}} {{content.lastName}}
- {{/collection}}
+ {{#each MyApp.listController}}
+ {{firstName}} {{lastName}}
+ {{/each}}
The advantage of using an array controller is that you only have to set up
your view bindings once; to change what's displayed, simply swap out the

0 comments on commit dd8e2d8

Please sign in to comment.
Something went wrong with that request. Please try again.