<!DOCTYPE html>
<html ng-app='test'>
<head>
<meta charset="utf-8">
<title>angular</title>
<script src='bower_components/angular/angular.js'>
</script>
<script>
var app=angular.module('test',[]);
app.controller('con1',function($scope,$http){
$scope.a=12
})
</script>
</head>
<body ng-controller='con1'>
{{a}}
</body>
</html>
网友评论