Versions Compared

Key

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

This page is still being drafted.

New in v1.4

Sometimes, you may need to make sure that something in a parent component is fully in place before a subcomponent is instantiated: perhaps data needs to be fetched from an external source before a subcomponent can work with it, or a template needs to be rendered before the subcomponent can bind events to elements.

The IoC framework offers the createOnEvent option to allow createOnEvent allows you to specify an event that should be used to trigger the creation of a subcomponent. When : If this option is used to specify an event namespecified, the IoC system will wait until the parent component fires that the named event before creating the subcomponent.

...