<html data-ng-app="sample">
<body>
<div data-ng-controller="SampleController">
<div>클릭한 횟수 {{clickCount}}</div>
<button data-ng-click="addClickCount()">Click!</button>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js"></script>
<script>
var app = angular.module('sample', []);
app.controller('SampleController', function($scope){
$scope.clickCount = 0;
$scope.addClickCount = function(){
$scope.clickCount = $scope.clickCount + 1;
};
});
</script>
</body>
</html>
// Code goes here
/* Styles go here */