Home »
MCQs »
AngularJS MCQs
Which is the correct syntax to write an AngularJS expression using the ng-bind directive?
9. Which is the correct syntax to write an AngularJS expression using the ng-bind directive?
- ng-bind="expression"
- ng-bind={expression}
- ng-bind={"expression"}
- ng-bind="{{expression}}"
Answer: A) ng-bind="expression"
Explanation:
The correct syntax to write an AngularJS expression using the ng-bind directive is: ng-bind="expression"