Skip to content
Related Articles

Related Articles

Web technologies Questions | AngularJS Quiz | Set-3 | Question 11

View Discussion
Improve Article
Save Article
  • Last Updated : 20 Sep, 2021
View Discussion
Improve Article
Save Article

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!