I have a very basic angular application. It simply increases the value by 1 when clicked on using ng-click.
Take a look at JSFiddle
<div ng-app="app" ng-controller="ctrl">
<div ng-click="hello=hello+1">THIS WORKS ON CLICK: {{hello}}</div>
<div ng-click="hello++">THIS DOESN'T: {{hello}}</div>
</div>
I was hoping to increment the value of a variable using '++' in ng-click, but it seems like it's not working as expected. Am I missing something here?