Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Example_n-g_Repeater

<!doctype html>
<html ng-app = "ng_Repeater_App">
   
   <head>
      <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.7.5/angular.min.js"></script>
   </head>
   
   <body>
      
      <div ng-controller="ng_Repeater_Controller">
         <h1>Topics</h1>
          <ul>
              <li ng-repeat="tpname in Topicnames">
                  {{ tpname.name }}
              </li>
          </ul>
      </div>
      <script>
          var app = angular.module('ng_Repeater_App',[]);
          app.controller('ng_Repeater_Controller',function($scope){
              $scope.Topicnames = [
                  {name:"What controller do from Angular's perspective"},
                  {name:"Controller Methods"},
                  {name:"Building a basic controller"}
                  ];
          });
          
      </script>
      
   </body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.