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 –