我刚刚开始使用角度js和goiong来完成一个教程并且使用这段代码并不起作用。
请指教错误
代码是:
<html data-ng-app="">
<head>
<title>My script 2 ANJS</title>
</head>
<body>
<div data-ng-controller="SimpleController">
<h3>Adding a simple controller</h3>
Name : <input type="text" data-ng-model="name" /> {{name}}
<br/>
<ul>
<li data-ng-repeat="cust in customers">{{cust.name}} - {{cust.city}}</li>
</ul>
</div>
<script src="scripts/angular.min.js"></script>
<script>
function SimpleController($scope) {
$scope.customers=[
{ name:'Mayank', city:'bhopal'},
{ name:'Ankit', city:'bhopal'},
{ name:'kapil', city:'sagar'},
{ name:'moongoo', city:'pune'}
];
}
</script>
</body>
</html>