To create and then add a component instance dynamically you should take 2 following things into account:
- You should add the dependency of the desired component to theĀ
rootDependencies
- Create the component using the document API methodĀ
createElement()
- Append the component to the Cubbles container (by default the
body
otherwise the element having thecubx-core-crc
attribute)
...