You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proposal: Allow computed property names in map expressions #13855
[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
The expression parser currently doesn't support ES2015 computed property names, which allow to put an expression between brackets [] that will be computed as the property name.
What is the motivation / use case for changing the behavior?
This would avoid the need for creating such properties in the component.
Please tell us about your environment:
Angular version: 2.3.1
Reacted by Patrick Racicot, Chris Lee, Robert Rex Beatie, Alexandru Sfirlogea, Trotyl Yu, Ben M, Alex Bjørlig, Daniel Karp, denkerny, Hadi Kashlan and 1 more
Reacted by Alexandru Sfirlogea, Stefano Cappa, Ben M and Alex Bjørlig
changed the title [-]Proposal: Allow computed property name in map expressions[/-][+]Proposal: Allow computed property names in map expressions[/+]on Jan 10, 2017
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.
We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.
You can find more details about the feature request process in our documentation.
I'm going to close this issue - but that's not a sign that we're not thinking about this.
As Pete mentioned, this is something we think about more holistically - how Angular's expression syntax differs from JavaScript. We're unlikely to implement this as a particular feature (especially given the lack of upvotes) but as we work to align our expression syntax, it will come up again for discussion.
Activity
[-]Proposal: Allow computed property name in map expressions[/-][+]Proposal: Allow computed property names in map expressions[/+]santialbo commentedon Jan 10, 2017
I've done some work as an exercise trying to add this feature. If it's ok I'd like to make a PR for discussing my changes.
https://github.com/santialbo/angular/commit/37b311e10957d712b182f9de38ccec9fb187d3b0
Regards
DzmitryShylovich commentedon Jan 16, 2017
@santialbo open a pr
angular-robot commentedon Jun 4, 2021
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.
Find more details about Angular's feature request process in our documentation.
angular-robot commentedon Jun 24, 2021
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.
We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.
You can find more details about the feature request process in our documentation.
petebacondarwin commentedon Oct 15, 2021
This is being tracked in the aggregate issue of #43485 for which we need to create a project proposal.
alxhub commentedon Feb 1, 2022
I'm going to close this issue - but that's not a sign that we're not thinking about this.
As Pete mentioned, this is something we think about more holistically - how Angular's expression syntax differs from JavaScript. We're unlikely to implement this as a particular feature (especially given the lack of upvotes) but as we work to align our expression syntax, it will come up again for discussion.
angular-automatic-lock-bot commentedon Mar 4, 2022
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.