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

后端 未结 5 1486
天命终不由人
天命终不由人 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

    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.

提交回复
热议问题