-
Notifications
You must be signed in to change notification settings - Fork 424
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
[state] bind-for
/bind-item
example doesn't work; for
value is undefined
#243
Comments
This is happening in version |
still not working on v6.8.0 and aframe 1.0.4 |
For me it is working, when I change the A-Frame: 0.9.2 @dsinni Updated your fiddle accordingly: https://jsfiddle.net/oyzwent8/ |
Thanks @marlon360 that fiddle helped me get my code working, I couldn't seem to get the simplest of tests to work. It seems the templating engine is really fussy and spews a LOT of hard to comprehend errors. Could do with some more explanation in the docs, including clearer examples. |
When trying to use
bind-for
withbind-item
, errors are thrown, even for the basic example provided in the docs.TypeError: state.shoppingItem is undefined
I've tried changing the
for
value toitem
, changedshoppingItem.name
to justname
, among numerous other things.It appears that only the interpolation method works, and without using the reference to the item object, i.e.,
{{name}}
Here is a fiddle illustrating what works and what doesn't: https://jsfiddle.net/um18bp3z/3/
Am I just missing something?
Thanks.
The text was updated successfully, but these errors were encountered: