title: Use of Undefined Constant - assumed id
body: <p>I am new to angularjs and am having some trouble implementing a simple checklist. </p>
  
  <pre><code>&lt;html lang="en" ng-app&gt;
  &lt;body&gt;
  &lt;div ng-controller="IdController" class="id-contain"&gt;
  
  &lt;ul&gt;
      &lt;li ng-repeat="id in ids"&gt;{{ id.body }}&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and in my <code>main.js</code> I have</p>
  
  <pre><code>function IdController($scope) {
  $scope.id = [
      { body: 'some' },
      { body: 'boiler' },
      { body: 'plate' }
  ];
  }
  </code></pre>
  
  <p>However, when I load the page, i get <code>Use of undefined constant id - assumed 'id'</code> Any ideas on where I could have gone wrong?</p>
  
  <p>Edit: I have adjusted the name in the controller from <code>$scope.id</code> to <code>$scope.ids</code> to no avail and when I change the {{}} to [[]] it loads [[ id.body ]] 3 times, but not the value. When I run it with {{}} it is giving me the same error and is parsed as <code>&lt;?php echo id.body; ?&gt;</code></p>