Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To create and then add a component instance dynamically you should take 2 following things into account:

  1. You should add the dependency of the desired component to theĀ rootDependencies
  2. Create the component using the document API methodĀ createElement()
  3. Append the component to the Cubbles container (by default the body otherwise the element having the cubx-core-crc attribute)

...