Trying to get the basics of dmx.parse() up and running but getting undefined in console when running the function.
Just using this code before I work with and array:
<dmx-value id="var1" dmx-bind:value="123"></dmx-value>
<script>
function myFunction() {
var myVar = dmx.parse('var1.value');
console.log(myVar);
}
</script>
Then I just added a static event onclick of a button:
<button id="btn1" class="btn" onclick="myFunction()">Button</button>
With the above inclucing dmx.parse I get undefined in console
If I remove dmx.parse I obviously get ‘var1.value’ printed and not the 123 value of the data variable.
What am I missing in terms of getting dmx.parse working?