<!DOCTYPE html>
<html>
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<body>
<div ng-app="abishkar" ng-controller="democntrl">
<ul>
<li ng-repeat="x in names">
{{ x.name + ', ' + x.country }}
</li>
</ul>
</div>
<script src="js/personController.js"></script>
</body>
</html>
angular.module('abishkar', []).controller('democntrl', function($scope) {
$scope.names = [
{name:'abi',country:'nepal'},
{name:'abi1',country:'nepal'},
{name:'abi2',country:'nepal'}
];
});
No comments:
Post a Comment