How do I toggle an ng-show in AngularJS based on a boolean?

前端 未结 6 647
日久生厌
日久生厌 2020-12-22 20:59

I have a form for replying to messages that I want to show only when isReplyFormOpen is true, and everytime I click the reply button I want to toggle whether th

6条回答
  •  猫巷女王i
    2020-12-22 21:24

    If based on click here it is:

    ng-click="orderReverse = orderReverse ? false : true"
    

提交回复
热议问题