Dmx.parse Not workin

Hello,

I’m using dmx.parse and it’s not working correctly.

I have the following lines of code:

<dmx-value id="var1" dmx-bind:value="'hello'"></dmx-value>

<script>
   
    let myVar = dmx.parse('var1.value');
    console.log(myVar);

</script>

When I load the page I get “undefined” on chrome and after loading the page I type on Chrome’s console and get the same undefined error.

Any ideas? The variable it’s declared before executing the script.

Community Page
Last updated: