@stemy/ngx-utils 19.9.17 → 19.9.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4911,10 +4911,12 @@ class ComponentLoaderService {
4911
4911
  throw new Error(`Module with id '${location.moduleId}' has been declared more than once.`);
4912
4912
  }
4913
4913
  const moduleInfo = moduleInfoList[0];
4914
- if (!moduleInfo) {
4914
+ if (moduleInfo) {
4915
+ await this.loadModule(moduleInfo);
4916
+ }
4917
+ else if (!location.fallback) {
4915
4918
  throw new Error(`Module with id '${location.moduleId}' not found.`);
4916
4919
  }
4917
- await this.loadModule(moduleInfo);
4918
4920
  return this.findComponentType(location.selector, location.moduleId);
4919
4921
  }
4920
4922
  createComponent(componentType, projectableNodes, injector, split) {