Confirmed users
401
edits
| Line 37: | Line 37: | ||
3. If the new module is only serving some on demand request, consider to lazy load the new module in the parent module's event handler and start it. | 3. If the new module is only serving some on demand request, consider to lazy load the new module in the parent module's event handler and start it. | ||
=== If the parent module is not based on BaseModule === | === If the parent module is not based on BaseModule === | ||
# Lazy load the module in the parent module's start function and return a promise including the promise of the lazy loader | |||
# If the new module is only serving some on demand request, consider to lazy load the new module in the parent module's event handler and start it. | |||
== Samples == | == Samples == | ||