Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

ng-repeat not working

       <body ng-app="todoListApp">
  <h1>My ToDos</h1>

  <div ng-controller="mainCtrl" class="list">
   <div ng-repeat:"todo in todos">
      <input ng-model="todo.completed" type="checkbox"/>
      <label ng-hide="editing" class="editing-label" ng-click="helloWorld()">{{todo.name}}</label>
      <input ng-blur="editing= false;" ng-show="editing" ng-model="todo.name" class="editing-label" type="text"/>

      <div class="actions">
      <a href="" ng-click=" editing = !editing">Edit</a>
      <a href="" ng-click="helloWorld()">Save</a>
      <a href="" class="delete">Delete</a>
      </div>
  </div>
 </div>

          ```

1 Answer

Joel Bardsley
Joel Bardsley
31,242 Points

You're using a colon after ng-repeat instead of an equals symbol, i.e:

<div ng-repeat="(key, value) in myObj"> ... </div>