Which below is the correct syntax for the ng-bind directive?
(A) <element ng-bind=”expression”> Contents… </element>
(B) <element ng-mousedown=”expression”> Contents… </element>
(C) <element ng-value=”expression”> Contents… </element>
(D) <element ng-keypress=”expression”> Contents… </element>
Answer: (A)
Explanation: The ng-bind directive in AngularJS is used for binding or replacing the text content of any particular HTML element with the input entered by the user. The value of HTML content updates whenever the value of the expression changes in the ng-bind directive.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Web technologies Questions | AngularJS Quiz | Set-3 | Question 11
Article Tags :
Recommended Articles