Home  >  Q&A  >  body text

angular.js - 怎么用angularjs做出下面的效果?


点击系统管理后展开出现下面的用户管理...等

PHP中文网PHP中文网2714 days ago466

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