0
我是Angular JS的新手。我写了一个简单的Angular代码,但是HTML没有正确渲染,或者表达式没有得到评估。请帮助我失去了什么。我正在使用angular.min.js缩小(1.6)。Angular JS不呈现HTML
<!DOCTYPE html>
<html ng-app>
<head>
<script src="js/angular.min.js"></script>
<script>
function MyFirstCtrl($scope) {
var employees = ['Catherine Grant', 'Monica Grant',
'Christopher Grant', 'Jennifer Grant'];
$scope.ourEmployees = employees;
};
</script>
</head>
<body ng-controller='MyFirstCtrl'>
<h2>Number of Employees: {{ ourEmployees.length}}</h2>
</body>
</html>
'NG-controller'? 'var app'? 'app.controller'? – Rayon
阅读角度docs开始..https://docs.angularjs.org/tutorial – user2427829
点击开始学习http://www.w3schools.com/angular/default.asp –