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
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: