Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html>
<script 
 src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js">
</script>
<body>
<div ng-app="testApp" ng-controller="appCtrl">
<button ng-click="countFunction()">Click Me!</button>
{{count }}
</div>
<script>
var app = angular.module('testApp', []);
app.controller('appCtrl', function($scope) {
    $scope.count = 0;
    $scope.countFunction= function() {
        $scope.count++;
    }
});
</script> 
</body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers