Skip to content

Commit 187b290

Browse files
committed
chore: make model() readonly
1 parent b9261cb commit 187b290

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/lib/components/abstract.loader.directive.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ import { Directive, model } from '@angular/core';
1212
@Directive()
1313
export abstract class AbstractLoaderDirective {
1414

15-
backgroundColor = model<string>();
15+
readonly backgroundColor = model<string>();
1616
}

src/lib/components/ng-http-loader.component.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ export class NgHttpLoaderComponent implements OnInit {
2828
isVisible$!: Observable<boolean>;
2929
visibleUntil = Date.now();
3030

31-
backdrop = model<boolean>(true);
32-
backgroundColor = model<string>();
33-
debounceDelay = model<number>(0);
34-
entryComponent = model<Type<unknown> | null>(null);
35-
extraDuration = model<number>(0);
36-
filteredHeaders = model<string[]>([]);
37-
filteredMethods = model<string[]>([]);
38-
filteredUrlPatterns = model<string[]>([]);
39-
minDuration = model<number>(0);
40-
opacity = model<string>('.7');
41-
backdropBackgroundColor = model<string>('#f1f1f1');
42-
spinner = model<string | null>(Spinkit.skWave);
31+
readonly backdrop = model<boolean>(true);
32+
readonly backgroundColor = model<string>();
33+
readonly debounceDelay = model<number>(0);
34+
readonly entryComponent = model<Type<unknown> | null>(null);
35+
readonly extraDuration = model<number>(0);
36+
readonly filteredHeaders = model<string[]>([]);
37+
readonly filteredMethods = model<string[]>([]);
38+
readonly filteredUrlPatterns = model<string[]>([]);
39+
readonly minDuration = model<number>(0);
40+
readonly opacity = model<string>('.7');
41+
readonly backdropBackgroundColor = model<string>('#f1f1f1');
42+
readonly spinner = model<string | null>(Spinkit.skWave);
4343

4444
constructor(private pendingRequestsInterceptorConfigurer: PendingRequestsInterceptorConfigurer, private spinnerVisibility: SpinnerVisibilityService) {
4545
}

0 commit comments

Comments
 (0)