标签:
<div ng-app="myApp" ng-controller="myClick"> <button ng-click="count=count+1">点我</button> {{count}} </div>
<script>
var app=angular.module(‘myApp‘,[]).controller("myClick",function($scope)
{
$scope.count=0;
})
</script>
标签:
原文地址:http://www.cnblogs.com/professional-NET/p/5011739.html