visibility hidden in AngularJs?

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

ng-show applied display: none

相关标签:
7条回答
  • 2021-02-03 17:26

    You should use ngClass or ngStyle, in your case:

    <button id="tagBtnId" name="TagsFilter" 
        ng-class="{'button-hidden':!disableTagButton}">Tags</button>
    

    And this CSS:

    .button-hidden{
       visibility: hidden;
    }
    
    0 讨论(0)
提交回复
热议问题