@stemy/ngx-utils 19.9.35 → 19.9.36
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.
|
@@ -9975,6 +9975,10 @@ function loadBaseHref(baseUrl) {
|
|
|
9975
9975
|
function getRootElement() {
|
|
9976
9976
|
return typeof document !== "undefined" ? document.body : null;
|
|
9977
9977
|
}
|
|
9978
|
+
function defaultAppInitializer() {
|
|
9979
|
+
const configs = inject(CONFIG_SERVICE);
|
|
9980
|
+
return configs.load();
|
|
9981
|
+
}
|
|
9978
9982
|
class NgxUtilsModule {
|
|
9979
9983
|
static getProviders(config) {
|
|
9980
9984
|
return [
|
|
@@ -10059,14 +10063,7 @@ class NgxUtilsModule {
|
|
|
10059
10063
|
useFactory: loadBaseHref,
|
|
10060
10064
|
deps: [APP_BASE_URL]
|
|
10061
10065
|
},
|
|
10062
|
-
provideAppInitializer(
|
|
10063
|
-
if (config && config.initializeApp) {
|
|
10064
|
-
const initializer = config.initializeApp(inject(Injector));
|
|
10065
|
-
return initializer();
|
|
10066
|
-
}
|
|
10067
|
-
const configs = inject(CONFIG_SERVICE);
|
|
10068
|
-
return configs.load();
|
|
10069
|
-
}),
|
|
10066
|
+
provideAppInitializer(config?.initializeApp || defaultAppInitializer),
|
|
10070
10067
|
];
|
|
10071
10068
|
}
|
|
10072
10069
|
static forRoot(config) {
|