I'm writing a custom aframe component to render a mesh based on a very long array of objects.
Aframe documentation only lists array as an input type where you can pass an attribute and it will be parsed into an array attributename="1 2 3"
I would like to pass a javascript reference into the component from the outside with something like this:
const hugeArray = [{somejson}, ...]
const element = document.createElement('my-component');
element.<something happens here>
or create a component outside of DOM API and pass arguments to component's init method.