Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement access via bracket[] for object keys in template #2

Open
jhonnymichel opened this issue Oct 19, 2017 · 1 comment
Open

Implement access via bracket[] for object keys in template #2

jhonnymichel opened this issue Oct 19, 2017 · 1 comment

Comments

@jhonnymichel
Copy link
Owner

jhonnymichel commented Oct 19, 2017

Right now it is not possible to bind to objects using bracket notation. that means we cannot access keys via other properties' values.

I.E.: if our viewModel look like this:

$viewModel: {
  selected: 2,
  items: ['orange', 'apple', 'grapes']
}

we cannot do this in the template:

<p xexeu-bind="items[selected]"></p>

@jhonnymichel
Copy link
Owner Author

Something else related to this issue: directives should receive a list of hooks since it can be dependant of one or more property

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

No branches or pull requests

1 participant