Expand and collapse with angular js

前端 未结 6 1709
一整个雨季
一整个雨季 2021-01-31 18:53

I am trying to figure out a way to do an expand and collapse using angular js. I haven\'t been able to find an elegant way to do this without manipulating dom objects in the con

6条回答
  •  野性不改
    2021-01-31 19:07

    I just wrote a simple zippy/collapsable using Angular using ng-show, ng-click and ng-init. Its implemented to one level but can be expanded to multiple levels easily.

    Assign a boolean variable to ng-show and toggle it on click of header.

    Check it out here enter image description here

提交回复
热议问题