Q. Which Angular directive is used to bind the value of an HTML element to a variable?
β
Correct Answer: (A)
ngModel
Explanation: ngModel is used for two-way data binding between input elements and component variables.