<!DOCTYPE html>
<html ng-app="scotchApp">
<head>
<meta charset="UTF-8">
<title>About</title>
<script src="js/angular.min.js"></script>
<script src="js/script.js"></script>
</head>
<body ng-controller="aboutController">
<div class="jumbotron text-ceenter">
<h1>About Page</h1>
<p>{{message}}</p>
</div>
</body>
</html>scotchApp.controller('aboutController',function($scope){
$scope.message='look! I am an about page.';
});运行结果:
About Page
{{message}}哪里出现问题了?
1 回答
O_____O
TA贡献1条经验 获得超0个赞
var scotchApp = angular.module("scotchApp",[]) scotchApp.controller('aboutController',function($scope){ $scope.message='look! I am an about page.'; });
- 1 回答
- 0 关注
- 1342 浏览
添加回答
举报
0/150
提交
取消