Skip to content

Commit

Permalink
chore: make model() readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalourdio committed Feb 3, 2025
1 parent b9261cb commit 187b290
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/abstract.loader.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ import { Directive, model } from '@angular/core';
@Directive()
export abstract class AbstractLoaderDirective {

backgroundColor = model<string>();
readonly backgroundColor = model<string>();
}
24 changes: 12 additions & 12 deletions src/lib/components/ng-http-loader.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ export class NgHttpLoaderComponent implements OnInit {
isVisible$!: Observable<boolean>;
visibleUntil = Date.now();

backdrop = model<boolean>(true);
backgroundColor = model<string>();
debounceDelay = model<number>(0);
entryComponent = model<Type<unknown> | null>(null);
extraDuration = model<number>(0);
filteredHeaders = model<string[]>([]);
filteredMethods = model<string[]>([]);
filteredUrlPatterns = model<string[]>([]);
minDuration = model<number>(0);
opacity = model<string>('.7');
backdropBackgroundColor = model<string>('#f1f1f1');
spinner = model<string | null>(Spinkit.skWave);
readonly backdrop = model<boolean>(true);
readonly backgroundColor = model<string>();
readonly debounceDelay = model<number>(0);
readonly entryComponent = model<Type<unknown> | null>(null);
readonly extraDuration = model<number>(0);
readonly filteredHeaders = model<string[]>([]);
readonly filteredMethods = model<string[]>([]);
readonly filteredUrlPatterns = model<string[]>([]);
readonly minDuration = model<number>(0);
readonly opacity = model<string>('.7');
readonly backdropBackgroundColor = model<string>('#f1f1f1');
readonly spinner = model<string | null>(Spinkit.skWave);

constructor(private pendingRequestsInterceptorConfigurer: PendingRequestsInterceptorConfigurer, private spinnerVisibility: SpinnerVisibilityService) {
}
Expand Down

0 comments on commit 187b290

Please sign in to comment.