Tutorial 14 – how to use ng-repeat-start and ng-repeat-end in AngularJS

How to use ng-repeat-start and ng-repeat-end in AngularJS?

This sample will help you know about using ng-repeat-start and ng-repeat-end in AngularJS.

ng-repeat-start and ng-repeat-end example code

 <html>  
   <head>  
     <title>Angular JS Model</title>  
     <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js"></script>  
     <script>  
       angular.module('MyForm', [])  
           .controller('myController', ['$scope', function($scope) {  
 $scope.items = ["One", 'Two', "Tree"];  
             }]);  
     </script>  
   </head>  
   <body ng-app="MyForm">  
           <h3>Ng-repeat-start and ng-repeat-end</h3>  
           <header ng-repeat-start="item in items">  
             Header {{ item }}  
           </header>  
           <div class="body">  
             Body {{ item }}  
           </div>  
           <footer ng-repeat-end>  
             Footer {{ item }}  
     </footer>    
 </body>  
  </html>  


1 comment:

  1. Good day. I was impressed with your article. Keep it up . You can also visit my site if you have time. Thank you and Bless you always.
    Hire Remote Angularjs Developer in India

    ReplyDelete

Popular Posts