How to nest two directives on the same element in AngularJS?

后端 未结 7 972
误落风尘
误落风尘 2020-12-13 09:30

When I try to nest two directives on the same element I get the following error. Nested \"E\" directives - Multiple directives [...] asking for new/isolated scope

7条回答
  •  抹茶落季
    2020-12-13 10:05

    In my case I had a bootstrap-ui accordion-group directive on an element that had ng-repeat:

    
    

    And solved it by doing this:

提交回复
热议问题