AngularJS Example

by pkozlowski_opensource

HTML

<div ng-controller='IncrementCtrl'>
  <div >
      <button ng-click="count = count + 1" ng-init="count=0">
        Increment
      </button>
      <span>count: {{count}} </span>
  </div>
  
    
  <button id='refreshButton' ng-click='count=0'>
    Refresh
  </button>
</div>

JavaScript

IncrementCtrl = function($scope){
}