Which directive is used to hide elements from the html dom by removing them from that dom and not changing their styling?



Which directive is used to hide elements from the html dom by removing them from that dom and not ch..

Answer / Shekhar Kumar

The ng-if directive in AngularJS can be used to conditionally render or hide HTML elements. Unlike ng-hide, which only toggles CSS styles, ng-if actually removes or adds the element to the DOM.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is grid in angular?

1 Answers  


Is lazy loading good?

1 Answers  


How would you make an angularjs service return a promise? Write a code snippet as an example

1 Answers  


what is the difference between constructor and ngoninit?

1 Answers  


Explain ng-bind directive ?

1 Answers  


Ln component and service which logic that we have to write?

1 Answers  


When latest angularjs was released?

1 Answers  


Explain the different types of streams present in node.js?

1 Answers  


Whenever invoke ngondestroy. Ngdocheck ligon.init?

1 Answers  


How can the spa be implemented with angular?

1 Answers  


Is react better than angular?

1 Answers  


What is ngonchanges in angular 2?

1 Answers  


Categories