Skip to content

Transcluded ui-view content with ng-repeat issue #435

Closed
@riccardo-forina

Description

@riccardo-forina

If a ng-repeat is used inside the transcluded content of a ui-view (possible since #171), every time the view is restored the content of the ng-repeat is the previously rendered dom plus the result of the ng-repeat.

It's better seen than explained: http://plnkr.co/edit/TjAy9F?p=preview

At first load, you see a list with the content of $scope.items.
If you click the link, the whole ui-view is replaced by the content of the nested view, as expected.
If you go back to the parent view, the view is rendered again (as expected) but starting from the previous rendered state, and not from the compiled template (unexpected).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions