Show hidden div on ng-click within ng-repeat

后端 未结 2 1477
情话喂你
情话喂你 2020-12-04 06:36

I\'m working on an Angular.js app that filters through a json file of medical procedures. I\'d like to show the details of each procedure when the name of the procedure is c

2条回答
  •  Happy的楠姐
    2020-12-04 07:25

    Use ng-show and toggle the value of a show scope variable in the ng-click handler.

    Here is a working example: http://jsfiddle.net/pvtpenguin/wD7gR/1/

    • {{procedure.definition}}

      Number of patient discharges: {{procedure.discharges}}

      Average amount covered by Medicare: {{procedure.covered}}

      Average total payments: {{procedure.payments}}

提交回复
热议问题