visibility hidden in AngularJs?

后端 未结 7 2177
南笙
南笙 2021-02-03 16:45

ng-show applied display: none

7条回答
  •  再見小時候
    2021-02-03 17:15

    You can use ng-style. Simple Example:

    ...

    At runtime, the style changes when isMenuOpen changes.

    • When isMenuOpen is true, you'll have style="visibility: visible".
    • When isMenuOpen is false, you'll have style="visibility: hidden".

提交回复
热议问题