AngularJs ng-click example
AngularJs ng-click example : AngularJs ng-click binds click event with elements in html.
AngularJs ng-click Example with Syntax
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="" > <button ng-click="msg = 'I am fine'">Click Me</button> Message = {{msg}} </div> </body> </html> |
Advertisements