Open In App

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

Which directive is used to specify the condition to show or hide the child elements in HTML DOM?
(A) ng-switch
(B) ng-cut
(C) ng-readOnly
(D) ng-input

Answer: (A)
Explanation: The ng-switch directive in AngularJS is used to specify the condition to show or hide the child elements in HTML DOM manipulation. The Html element will be displayed if the expression inside the ng-switch directive returns true other wise it cant show any effect it will hide automatically.
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :