${xy} in bindable for custom attribute

Is there a way to use the “${xy}” syntax in a bindable for a custom attribute:

Seems like this syntax is not working:

<div test="hello ${name}"></div>
1 Like

You can do like this https://gist.dumber.app/?gist=466b57e6c9ff5a3b95f4f8942fb9596a

<div test.bind="`Hello ${name}`"></div>

I’ll have a look why the first one not working

Thanks for your help! Unfortunately, in my real use case it’s a bit more complicated! :frowning:

Additionally, there’s a value converter in place:

<div test="asfd-${name | encode}-${other | encode}"></div>

Unfortunately, I can’t use both of your workarounds for this reason.

1 Like

The issue is around it wrongly compiles to target property name value on the test custom attribute. If you change your url property to value, it will work, as a workaround. The fix for this should be simple.

2 Likes

Thanks for your help, it works! :+1:

1 Like