Skip to content

Commit

Permalink
example demo showCallingCode
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogermax committed Sep 3, 2021
1 parent 8336349 commit 27e3034
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -540,12 +540,19 @@ <h2 class="div-ex2">Usage changing language</h2>
<mat-option value="en">English</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Choose showCallingCode</mat-label>
<mat-select [(value)]="showCallingCode">
<mat-option value="true">true</mat-option>
<mat-option value="false">false</mat-option>
</mat-select>
</mat-form-field>
</div>
<mat-select-country appearance="outline"
label="Country"
[language]="languageSelected"
[autocomplete]="'no'"
[showCallingCode]="true"
[showCallingCode]="showCallingCode == 'true'"
(onCountrySelected)="onCountrySelected($event)">
</mat-select-country>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class AppComponent implements OnInit {
countryFormGroup: FormGroup;

languageSelected = 'es';
showCallingCode = 'false';

defaultValue: Country = {
name: 'Deutschland',
Expand Down

0 comments on commit 27e3034

Please sign in to comment.