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

后端 未结 5 1499
天命终不由人
天命终不由人 2020-12-11 18:08

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 value

5条回答
  •  情书的邮戳
    2020-12-11 18:26

    ng-show will only display the element IF the expression is true...

    Will Show 
    Will not Show 
    

    ng-hide will not display the element IF the expression is true, but will display if the expression is false.

    Will not display
    Will display
    

提交回复
热议问题