我这个为什么没反应啊 哪位大神拯救一下小白
html的
<!DOCTYPE html>
<html ng-app>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div ng-controller="GreetCtrl">
hello{{name}}!
</div>
<div ng-controller="ListCtrl">
<ol>
<li ng-repeat="name in names">
{{name}} from {{department}}
</li>
</ol>
</div>
</body>
<script src="js/angular1.3.0.js"></script>
<script src="js/scope1.js"></script>
</html>
JS的
function GreetCtrl($scope,$rootScope){
$scope.name ='World';
$rootScope.department ='Angular';
}
function ListCtrl($scope){
$scope.names = ['a','b','c'];
}