Closed JaneOri closed 5 years ago
@James0x57 I can not reproduce the issue in this CodePen , can you please provide more information on how to reproduce the issue or correct my CodePen.
But the following case throws a warning:
{{#let bar="Bar"}}
<child-com foo:from="bar"></child-com>
Unable to find key "bar".
The codepen for the warning https://codepen.io/cherifGsoul/pen/gyLGKX
{{# let }} ...
doesn't run when the closing tag is missed
https://codepen.io/anon/pen/BEQmoG per convo in the bitovi community slack ^ Sorry I didn't see these responses sooner!
I was trying to pass variables between components without cluttering the vm:
I could not figure out what I was doing wrong partially because this was the error message: This is the same error you'd get without using let if
bob
wasn't on the VM.The actual problem is that the
let
I'm using is for defining it within its own block and has no close tag so the let var doesn't get added to the scope. That should maybe cause its own error?It works fine if I remove the
#
or close the block, of course, but as someone new to thelet
expressions I didn't realize it until some time later what I did wrong. I just putbob
on the VM and avoidedlet
at the time.Thank you for your time, 🍻