Skip to content

Commit 78f88ca

Browse files
committed
fix(package): added dual binding for the placeholder and removed html content from inputs
1 parent 551743a commit 78f88ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/module/component/mat-google-maps-autocomplete.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<input matInput
44
[(ngModel)]="address"
55
(change)="onQuery($event)"
6-
placeholder="placeholderText"
6+
placeholder="{{placeholderText}}"
77
class="form-control"
88
#search
99
MatValidateAddress

src/module/component/mat-google-maps-autocomplete.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ export class MatGoogleMapsAutocompleteComponent implements OnInit {
3434
placeholderText = 'Please enter the address';
3535

3636
@Input()
37-
requiredErrorText = 'The address is <strong>required</strong>';
37+
requiredErrorText = 'The address is required';
3838

3939
@Input()
40-
invalidErrorText = 'The address is <strong>not valid</strong>';
40+
invalidErrorText = 'The address is not valid';
4141

4242
@Input()
4343
appearance: string | Appearance = Appearance.STANDARD;

0 commit comments

Comments
 (0)