@smartsoft001/angular 1.1.656 → 1.1.657

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.
@@ -2793,7 +2793,7 @@
2793
2793
  .filter(function (c) { return c['smartType'] === k; });
2794
2794
  };
2795
2795
  var components = getComponents(key, moduleRef);
2796
- if (!components.length) {
2796
+ if (!components.length && moduleRef) {
2797
2797
  var applicationRef = moduleRef.injector.get(i0.ApplicationRef);
2798
2798
  var appComponentInjector = (_a = applicationRef.components
2799
2799
  .find(function (t) { return t.componentType.name === "AppComponent"; })) === null || _a === void 0 ? void 0 : _a.injector;