August 10, 2015
admin
AngularJs ng-click event example
AngularJs ng-click event example : AngularJs ng-click binds click event with elements in html.
Syntax : AngularJs ng-click event
The below example shows the ng-click event directive.
Example
<!DOCTYPE html> <html lang="en"> <head> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script> </head> <body> <div ng-app="" ng-init="i=1"> <button ng-click="i = i+1">Click Me</button> Counter = {{i}} </div> </body> </html> |
Advertisements
Add Comment
📖 Read More
angularjs development, AngularJs ng-click event not working, AngularJs ng-click event on button click, angularjs online course