@kithinji/orca 1.0.0 → 1.0.1
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.
package/dist/browser/index.mjs
CHANGED
|
@@ -3077,7 +3077,11 @@ function createComponent(ComponentClass, props = {}, parentComponent) {
|
|
|
3077
3077
|
try {
|
|
3078
3078
|
instance = injector.resolve(ComponentClass);
|
|
3079
3079
|
} catch (e) {
|
|
3080
|
-
injector.addProvider(
|
|
3080
|
+
injector.addProvider({
|
|
3081
|
+
provide: ComponentClass,
|
|
3082
|
+
useClass: ComponentClass,
|
|
3083
|
+
scope: "transient"
|
|
3084
|
+
});
|
|
3081
3085
|
instance = injector.resolve(ComponentClass);
|
|
3082
3086
|
}
|
|
3083
3087
|
const localProviders = Reflect.getMetadata(COMPONENT_PROVIDERS, ComponentClass) || [];
|