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

Get value of object with 2 variables #21

Closed
garcia-marco opened this issue Jan 26, 2018 · 11 comments
Closed

Get value of object with 2 variables #21

garcia-marco opened this issue Jan 26, 2018 · 11 comments
Assignees
Labels
Type: Bug The issue has indentified a bug

Comments

@garcia-marco
Copy link

Hello i'm trying to do something like this :

<input value="{{object1[object2.id]}}">

But I can't find a solution. Is this even possible ?

@RomainLanz
Copy link
Member

Hey @garciamarco33! 👋

Do you have any error while running your code?

@garcia-marco
Copy link
Author

Yes,
E_INVALID_EXPRESSION: Invalid expression <object1[object2.id]>

@thetutlage
Copy link
Member

Yeah seems like a bug, since it has nested Member expressions and somewhere in the code it's not handled properly.

Lemme look into it and see if it's a easy fix

@thetutlage thetutlage added the Type: Bug The issue has indentified a bug label Jan 26, 2018
@thetutlage thetutlage self-assigned this Jan 26, 2018
@garcia-marco
Copy link
Author

Nice,
thank you !

@thetutlage
Copy link
Member

Fixed and published as 1.1.4

@garcia-marco
Copy link
Author

Working great, thanks !

@garcia-marco
Copy link
Author

garcia-marco commented Jan 30, 2018

Hello again,
didn't touch the branch where I put this since the 26 and when I tried to test it today, the same error popped again :
E_INVALID_EXPRESSION: Invalid expression < object1[object2.id] >
Nothing has changed I'm confused...
Do you know something which could help me pls?

@garcia-marco
Copy link
Author

garcia-marco commented Feb 1, 2018

I checked more in detail,
value="{{ object1[object2.id] }}" is not working, I don't know why it worked for a bit,
did you try it ?
If I put value="{{object1}}" or value="{{object2}}" it's working so it's not the variables.

@thetutlage
Copy link
Member

Are you sure, you are using the latest release 1.1.4

@thetutlage thetutlage reopened this Feb 1, 2018
@garcia-marco
Copy link
Author

Yup,
I've done npm i edge.js@1.1.4 to make sure of it

@thetutlage
Copy link
Member

Fixed in v3.0.0. It has breaking changes and will be out by end of the week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug The issue has indentified a bug
Projects
None yet
Development

No branches or pull requests

3 participants