Ng-Click-Without-Function

 
 
 
<!DOCTYPE html> <html lang="en-US"> <head> <title>Welcome in the Angular JS</title> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-rc.1/angular.min.js"></script> </head> <body ng-app> <div> <button ng-click="count=count+1" ng-init="count=0">Click It</button> <div> Count is :{{count}} </div> </div> </body> </html>
Output