How to Show and Hide div using AngularJS? without using any css or jquery

后端 未结 1 837
轻奢々
轻奢々 2021-01-29 06:28

I want to hide a div and show it on button click using angularJS? I used ng-show and ng-hide but it\'s not working

相关标签:
1条回答
  • 2021-01-29 06:55
    <div ng-show="anyVariable"></div>
    
    <button ng-click="anyVariable = !anyVariable">Click</button>
    
    0 讨论(0)
提交回复
热议问题