Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space TDDM and version 1

...

If you don't know what component you want ahead of time, for example if its name is returned by an API call, or want to delay loading the bundle it is contained in until it is actually used, you can instead make use of the tui.asyncComponent API. This function returns a component that can be used with <component :is=""> or any other Vue rendering mechanism, but will just display a loading icon until it is actually available. This is especially useful for dynamically specified components, e.g. from a plugin. The dynamic component could be anything, from part of a Form to an entire component tree such as the contents of a modal.

See the JavaScript page for more information on asynchronous loading of code and components.

...