Solution: In memory counter



examples/angular/in_memory_counter.html
<script src="angular.min.js"></script>
<div ng-app>
    <button ng-init="counter = 0" ng-click="counter = counter + 1">Increment</button>
    {{counter}}
</div>

counter += 1    would not work