What is ng-click directive?
Submitted by: Muhammadng-click directive represents a AngularJS click event.
In below example, we've added ng-click attribute to a HTML button and added an expression to updated a model. Then we can see the variation.
<p>Total click: {{ clickCounter }}</p></td>
<button ng-click = "clickCounter = clickCounter + 1">Click Me!</button>
Submitted by: Muhammad
In below example, we've added ng-click attribute to a HTML button and added an expression to updated a model. Then we can see the variation.
<p>Total click: {{ clickCounter }}</p></td>
<button ng-click = "clickCounter = clickCounter + 1">Click Me!</button>
Submitted by: Muhammad
Read Online AngularJS Developer Job Interview Questions And Answers
Top AngularJS Developer Questions
☺ | Please explain what is Angular Expression? Explain what is key difference between angular expressions and JavaScript expressions? |
☺ | Explain on which types of component can we create a custom directive? |
☺ | Tell me what is AngularJS? |
☺ | Tell me how does the digest phase work? |
☺ | what is DI (Dependency Injection ) and how an object or function can get a hold of its dependencies? |
Top Scripting language Categories
☺ | AngularJS Interview Questions. |
☺ | Ext-JS Interview Questions. |
☺ | Dojo Interview Questions. |
☺ | Expert Developer JavaScript Interview Questions. |
☺ | jQuery Mobile Interview Questions. |