Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Nested transclusion not working with ng-repeat #7842

@gustavohenke

Description

@gustavohenke

Starting at 1382d4e, I'm no longer able to use a nested transclusion with ng-repeat.

My use case is the following:

<parent>
  <child items="value in array">
    {{ value }}
  </child>
</parent>

Both parent and child directives have transclude: true. parent has scope: true, child has scope: false. items attribute is replaced with ng-repeat after some parsing in the compile function.

Something I noted while debugging in Batarang is that previously, I had a scope tree like this:

- 00A
|- 00B
- 00C
|- 00D

where 00A/00C had the value from the original array and 00B/00D were the content of each item in `ng-repeat.

Now, my scope tree looks like this:

- 00A
- 00B
- 00C
- 00D

same rule applies.

Working plunker (with v1.2.17): http://plnkr.co/edit/tdbRdT8gnLKhdcGAWlNV
Reproducible plunker for v1.2.18: http://plnkr.co/edit/qA3tOaR5RyehjI02xGRW?p=preview

If I wasn't clear enough and any further info is needed, please let me know.
Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions