我是 Angular JS 的新手。请帮我找出这个演示 只显示的原因:{{name}}
而不是显示每个值,
<!DOCTYPE html>
<html>
<head>
<title>AngularJS Demos</title>
</head>
<body>
<div class="container" data-ng-app="demoApp" data-ng-controller="SimpleController">
<h3>Adding a Simple Controller</h3>
<ul>
<li data-ng-repeat="name in names">{{name}}</li>
</ul>
</div>
<script type="text/javascript">
var samplesModule = angular.module('demoApp', []);
samplesModule.controller('SimpleController', SimpleController);
function SimpleController($scope) {
$scope.names = ['Dave', 'Napur', 'Heedy', 'Shriva'];
}
</script>
<script src="https://code.angularjs.org/1.3.9/angular.js"></script>
</body>
</html>