<!doctype html> <html ng-app="" ng-init="states=[{State:'TamilNadu',Capital:'Chennai'},{State:'Kerala',Capital:'Trivandrum'},{State:'Karnataka',Capital:'Bengaluru'}]"> <head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular.min.js"></script> </head> <body> <div> <p>Looping with objects</p> <ul> <li ng-repeat="x in states"> {{x.State + ' : ' + x.Capital}} </li> </ul> </div> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more