search

Home  >  Q&A  >  body text

angular.js - How to use angularjs to achieve the following effects?


Click System Management to expand the following User Management...etc.

PHP中文网PHP中文网2798 days ago526

reply all(2)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-15 17:15:00

    This is not a problem with Angular.
    It should be considered a style problem.
    Add the .active class to the parent element when clicked
    .list{diplay:none}
    .active .list{display:block}

    reply
    0
  • 高洛峰

    高洛峰2017-05-15 17:15:00

    You can use angular’s ​​attribute directive to achieve this, there are specific examples on the official website

    reply
    0
  • Cancelreply