We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce1abc3 commit a535a41Copy full SHA for a535a41
projects/ngx-loader-indicator-lib/src/lib/ngx-loader-indicator.providers.ts
@@ -10,11 +10,11 @@ import {
10
11
export function _configFactory(
12
initConfig: optionsConfig,
13
- configValue: optionsConfig
+ configValue?: optionsConfig
14
): optionsConfig {
15
- const loaderStyles: Config['loaderStyles'] | null = configValue.loaderStyles ?? null;
16
- const imgStyles: Config['imgStyles'] | null = configValue.imgStyles ?? null;
17
- const rotate: Config['rotate'] | null = configValue.rotate ?? null;
+ const loaderStyles: Config['loaderStyles'] | null = configValue?.loaderStyles ?? null;
+ const imgStyles: Config['imgStyles'] | null = configValue?.imgStyles ?? null;
+ const rotate: Config['rotate'] | null = configValue?.rotate ?? null;
18
19
return {
20
...initConfig,
0 commit comments