Skip to content

Commit 6c93442

Browse files
committed
chore: make model() readonly
1 parent 4912b4b commit 6c93442

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/lib/components/intl-tel-input.component.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ import { NgClass } from "@angular/common";
2424
})
2525
export class IntlTelInputComponent implements AfterViewInit {
2626

27-
cssClass = model<string>();
28-
label = model<string>();
29-
labelCssClass = model<string>();
30-
name = model<string>('intl-tel-input-name');
31-
options = model<IntlTelInputOptions>({});
32-
required = model<boolean>(false);
33-
E164PhoneNumber = model<string | null>();
34-
@ViewChild('intlTelInput') private _inputElement!: ElementRef;
27+
readonly cssClass = model<string>();
28+
readonly label = model<string>();
29+
readonly labelCssClass = model<string>();
30+
readonly name = model<string>('intl-tel-input-name');
31+
readonly options = model<IntlTelInputOptions>({});
32+
readonly required = model<boolean>(false);
33+
readonly E164PhoneNumber = model<string | null>();
34+
@ViewChild('intlTelInput') private readonly _inputElement!: ElementRef;
3535
private _phoneNumber!: string;
3636
private _intlTelInput!: IntlTelInput;
3737

0 commit comments

Comments
 (0)