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

feat($parse): provide a mechanism to access the locals object #13454

Closed
wants to merge 1 commit into from

Conversation

lgalfaso
Copy link
Contributor

@lgalfaso lgalfaso commented Dec 6, 2015

Extends the built-in identifiers definitions by adding $local. This is a non-assignable reference to the locals object.

Closes: #13247

}).toThrow();
expect($rootScope.$eval('$local.bar = 23', local)).toEqual(23);
expect(local.bar).toBe(23);
}));
Copy link
Member

Choose a reason for hiding this comment

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

It would be nice to have a test with this.$local.

@gkalpak
Copy link
Member

gkalpak commented Dec 7, 2015

I would prefer $locals (over $local), since this is how we've been referring to it elsewhere (e.g. in the docs).

Other than that (and the test nitpick), it LGTM.

Extends the built-in identifiers definitions by adding `$local`. This is a
non-assignable reference to the locals object.

Closes: angular#13247
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.

3 participants