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

fix($compile): update cloned elements if the template arrives after the ... #5161

Merged
merged 1 commit into from
Dec 6, 2013

Conversation

tbosch
Copy link
Contributor

@tbosch tbosch commented Nov 27, 2013

...cloning

If an element has a directive whose content is loaded using templateUrl,
and the element is cloned using a linking function before the template arrives,
the clone needs to be updated as well.

This also updates ngIf and ngRepeat to keep the connection to the clone
of a tranclude function, so that they know about the changes a directive with
templateUrl does to the element in the future.

Fixes to #4930.

@mary-poppins
Copy link

Thanks for the PR!

  • Contributor signed CLA now or in the past
    • If you just signed, leave a comment here with your real name
  • PR's commit messages follow the commit message format

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

@@ -1330,23 +1330,25 @@ function getter(obj, path, bindFnToScope) {
}

/**
* Return the siblings between `startNode` and `endNode`, inclusive
* @param {Object} object with `startNode` and `endNode` properties
* Return the DOM siblings between the first and the last node in the given array.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop the 2nd "the" from "the first and the last." Should read "the first and last."

@ghost ghost assigned IgorMinar Dec 2, 2013
…he cloning

If an element has a directive whose content is loaded using `templateUrl`,
and the element is cloned using a linking function before the template arrives,
the clone needs to be updated as well.

This also updates `ngIf` and `ngRepeat` to keep the connection to the clone
of a tranclude function, so that they know about the changes a directive with
`templateUrl` does to the element in the future.

Fixes to angular#4930.
@tbosch tbosch merged commit b0972a2 into angular:master Dec 6, 2013
@tbosch tbosch deleted the ngrepeatjunk branch December 6, 2013 06:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants