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

Fix(ngRepeat) do not allow $id and $root as aliases #10778

Closed
wants to merge 1 commit into from

Conversation

KELiON
Copy link
Contributor

@KELiON KELiON commented Jan 16, 2015

Currently user can use $id or $root as alias in ng-repeat directive that leads to rewriting these scope-related variables. This commit fixes this behavior by throwing an error when user try to use these values.

@KELiON KELiON changed the title Fix as $id and as $root in ng-repeat directive Fix(ngRepeat) $id and $root as aliases Jan 16, 2015
Currently user can use `$id` or `$root` as alias in ng-repeat directive that leads to rewriting these scope-related variables. This commit fixes this behavior by throwing an error when user try to use these values.
@KELiON KELiON changed the title Fix(ngRepeat) $id and $root as aliases Fix(ngRepeat) do not allow $id and $root as aliases Jan 16, 2015
@KELiON KELiON force-pushed the update-ng-repeat-alias branch from 4e55344 to aa4d8cb Compare January 16, 2015 13:30
@Narretz Narretz added this to the 1.4.x milestone Jan 20, 2015
@Narretz
Copy link
Contributor

Narretz commented Jan 20, 2015

LGTM, but just to be sure, @caitp can you take a look at this?

@caitp
Copy link
Contributor

caitp commented Jan 20, 2015

lgtm (note: I am very happy that it's such a small patch to fix this)

@caitp caitp closed this in c2031b1 Jan 20, 2015
pkozlowski-opensource pushed a commit that referenced this pull request Jan 20, 2015
Currently user can use `$id` or `$root` as alias in ng-repeat directive that leads to rewriting
these scope-related variables. This commit fixes this behavior by throwing an error when user try
to use these values.

Closes #10778
@Narretz
Copy link
Contributor

Narretz commented Jan 20, 2015

Thanks! Should we cherry-pick this to 1.3 too?

@pkozlowski-opensource
Copy link
Member

@Narretz it was picked as d01cae2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants