<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>ng-click事件</title>
		<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
	</head>

	<body>

		<div style="margin-left:50%" ng-app="myApp" ng-controller="myCtrl">
			<button class="button button-dark" ng-click="count = count + 1">点我加一!</button>
			<p>{{ count }}</p>
		</div>
		<script>
			var app = angular.module('myApp', []);
			app.controller('myCtrl', function($scope) {
				$scope.count = 0;
			});
		</script>
	</body>

</html>

ng-click用发如上,实现效果就是这样 AngularJs --ng-click事件_前端开发