angular.js--------demo1

<!doctype html>
<html ng-app>
<head>
<meta charset="utf-8">
</head>
<body>
<div ng-controller="HelloAngular">
<p>{{greeting.text}},angular.js</p>
</div>
</body>
<script src="js/angular-1.3.0.js"></script>
<script src="HelloAngular_MVC.js"></script>
</html>

 


function HelloAngular($scope){
$scope.greeting = {
text:"Hello"
};
}

 

posted @ 2016-10-13 20:34  江山一族  阅读(109)  评论(0编辑  收藏  举报