← BYTES
AngularJS·Starter·Ref: 5.1.10
What is the basic difference between ng-show and ng-hide?
Have a question about this video? Mention reference 5.1.10 when you contact us.
a.They are identical in every way
b.ng-show removes the element from the DOM, ng-hide only changes its CSS
c.ng-show displays the element when the expression is truthy, while ng-hide hides it when the expression is truthy -- they are inverses of each other
d.ng-hide only works on images
Both toggle visibility via CSS (adding/removing an ng-hide class that sets display:none) rather than adding/removing the element from the DOM -- they just apply opposite truthiness logic to decide when the element is visible.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES5110#AngularJS