title: how to use ngFor in angularjs
body: <p>I am new to angular. I see across constructors,template,selector,etc. i have no idea. I know $scope,$rootscope, module and controller. With these I have written a code for ngFor.I believe before nfFor we had ngRepeat in angular1. please correct it. </p>
  
  <pre><code> &lt;html ng-app="moduleA"&gt;
  
   &lt;head&gt;
   &lt;title&gt; Collections
  
   &lt;/title&gt;
   &lt;script src="angular.js"&gt;&lt;/script&gt;
     &lt;link href="//cdnjs.cloudflare.com/ajax/libs/twitter-
  bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css"/&gt;
   &lt;script 
   src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.min.js"&gt;
   &lt;/script&gt;
   &lt;script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;
  &lt;/script&gt;
  &lt;script src="//cdnjs.cloudflare.com/ajax/libs/twitter-
  bootstrap/3.2.0/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  
   &lt;body&gt;
    &lt;script&gt;
  
     angular.module('moduleA')
    .controller('SubjectController',function($scope,$rootscope){
  
          $scope.todos = [
          { id: 1, title: 'Learn AngularJS', description: 'Learn,Live,Laugh AngularJS', done: true },
          { id: 2, title: 'Explore hibernate', description: 'Explore and use hibernate instead of jdbc', done: true },
          { id: 3, title: 'Play with spring', description: 'spring seems better have a look', done: false },
          { id: 4, title: 'Try struts', description: 'No more labour work..use struts', done: false },
          { id: 5, title: 'Try servlets', description: 'Aah..servlets stack seems cool..why dont u try once', done: false }
      ];
      });
  &lt;/script&gt;
  
  &lt;div ng-controller="moduleA"&gt;
  
          &lt;table&gt;
              &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;th&gt;#&lt;/th&gt;
                      &lt;th&gt;Title&lt;/th&gt;
                      &lt;th&gt;Description&lt;/th&gt;
                      &lt;th&gt;Done?&lt;/th&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
                  &lt;tr ngFor="let todo of todos"&gt;
                  &lt;td&gt; {{todo.id}}&lt;/td&gt;
                  &lt;td&gt; {{todo.title}}&lt;/td&gt;
                  &lt;td&gt; {{todo.description}}&lt;/td&gt;
                  &lt;td&gt; {{todo.done}}&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
  
      &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>