I’m sure this is super obvious but I’m struggling to follow along with the Liveview documentation regarding slots. The setup below generates “expected attribute” compile error and I don’t understand why. Just ramping up the learning curve with slots so appreciate any help. See image below for recap. thanks.
1 Like
The closing tag for slot_test
in your render
function should be </.slot_test>
, not <./slot_test>
. Don’t know for sure if that’s going to fix your problem if there’s something else going on, but it stood out to me
Edit: I did a quick test and can confirm that that syntax mistake will produce an expected attribute name
error message
3 Likes
I just arrived here do to a similar error message after mistyping </.form>
as <./form>
.
1 Like