Open In App

Aptitude | AngularJS Quiz | Set-2 | Question 15

Like Article
Like
Save
Share
Report

The directive which is responsible for adding or removing the element in HTML is:
(A) ng-switch
(B) ng-model
(C) ng-Disabled
(D) ng-Cloak


Answer: (A)

Explanation: The ng-switch is used for swapping the DOM structure so the ng-switch is a directive that is responsible for adding or remove the element in HTML. It is also responsible to show or hide the element that is dependent on the expression.

Quiz of this Question
Please comment below if you find anything wrong in the above post


Last Updated : 20 Sep, 2021
Like Article
Save Article
Share your thoughts in the comments
Similar Reads