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

feat($parse): Add support for ES6 object initializers #14407

Closed
wants to merge 1 commit into from

Conversation

lgalfaso
Copy link
Contributor

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
feature

What is the current behavior? (You can also link to an open issue here)
ES6 object initializers are not supported in expressions

What is the new behavior (if this is a feature change)?
ES6 object initializers are supported in expressions

Eg Shorthand property definition {x}. Computed properties {[x + 'foo']: 'bar'}

Does this PR introduce a breaking change?
No

Please check if the PR fulfills these requirements

Other information:

  • Add support for computed property names
  • Add support for short notation in properties definitions

Eg. The expressions {x} and {[x + 'foo']: 1} are now valid.

- Add support for computed property names
- Add support for short notation in properties definitions

Eg. The expressions `{x}` and `{[x + 'foo']: 1}` are now valid.
@petebacondarwin
Copy link
Contributor

We need to check with the Angular 2 team that they are going to adopt these in their template expression syntax before landing this.

@petebacondarwin petebacondarwin modified the milestones: 1.5.4, Backlog, 1.5.5, 1.5.6 Apr 11, 2016
lgalfaso added a commit that referenced this pull request Apr 18, 2016
- Add support for computed property names
- Add support for short notation in properties definitions

Eg. The expressions `{x}` and `{[x + 'foo']: 1}` are now valid.

Closes: #14407
@lgalfaso
Copy link
Contributor Author

Landed this into master and 1.5.x branch

@lgalfaso lgalfaso closed this Apr 18, 2016
kindy pushed a commit to kindy/angular.js that referenced this pull request Jan 24, 2017
Adding the missing watches for ES6 object property which added in angular#14407
kindy added a commit to kindy/angular.js that referenced this pull request Jan 24, 2017
Adding the missing watches for ES6 object property which added in angular#14407
kindy added a commit to kindy/angular.js that referenced this pull request Feb 4, 2017
Adding the missing watches for ES6 object property which added in angular#14407

(cherry picked from commit 4b8bbf8)
  (and also apply commit 7278762)
gkalpak pushed a commit that referenced this pull request Feb 4, 2017
Add the missing watches for ES6 object computed properties which were
implemented in #14407.

Closes #15678
gkalpak pushed a commit that referenced this pull request Feb 4, 2017
Add the missing watches for ES6 object computed properties which were
implemented in #14407.

Closes #15678
ellimist pushed a commit to ellimist/angular.js that referenced this pull request Mar 15, 2017
Add the missing watches for ES6 object computed properties which were
implemented in angular#14407.

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

4 participants