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.

ng:include and ng:repeat do not like each other #206

@mhevery

Description

@mhevery

The issue is with this code in ng:include

if (element[0]['ng:compiled']) {
this.descend(true);
this.directives(true);
} else {
element[0]['ng:compiled'] = true;

The problem is that this
element[0]['ng:compiled'] = true;
sets a flag on instance of element not on the dom. As a result the flag does not get copied when the loop gets unrolled in the ng:repeat and the code gets double compiled

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions