Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between `ng-show` and `ng-hide`?

Tags:

angularjs

These attributes are both given either a true or false value, so what difference is there between them? It would make sense if there weren't values for them.

Am I missing something?

like image 201
IIllIIll Avatar asked May 13 '15 18:05

IIllIIll


1 Answers

With ng-show the element is shown if the expression is true, it will hide if it is false

On the other hand with ng-hide the element is hidden if the expression is true and it will be shown if it is false.

Just two sides of the same coin.

like image 118
Jesus Rodriguez Avatar answered Nov 07 '22 19:11

Jesus Rodriguez