一些一個控制器,請幫助我,男初學者,我寫的控制器代碼,當我初始化索引頁控制器它不顯示了的script.js消息angularjs不工作
var MainController = function($scope){
$scope.message = "Hello angularJS";
}
<!DOCTYPE html>
<html ng-app>
<head>
<script data-require="[email protected]*" data-semver="2.0.0" src="https://code.angularjs.org/2.0.0-snapshot/angular2.js"></script>
<link rel="stylesheet" href="style.css" />
<script src="script.js"></script>
</head>
<body ng-controller="MainController">
<h1>Hello Plunker!</h1>
<h1>{{message}}</h1>
</body>
</html>
請幫助我,指導我.... I,M初學者請...
感謝兄弟你的答案....它,S工作... – user3719190