edge-js/edge

Passing values from edge to alpine.js (Question)

Closed this issue · 3 comments

There is something like tag template that I can pass values from edge template to alpine components?

Right now I have to do something like this:
<div x-data={alpineComponent('{{ edgeValue }}')}></div> --> cumbersome?

I need to evaluate the things to work

I don’t see how it wouldn’t work, could you indicate what is the output or the error?
Also, from where alpineComponent is coming from?

Edit: if want you mean by evaluate is "don’t escape special characters" you can use triple brace {{{ edgeValue }}}.

It Works correctly, I personally think that syntax is cumbersome. My question was about some alternative syntax existence

About the alpine component, it is a regular alpine component registered on Alpine.data

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.