Dashboard : ps

This commit is contained in:
venbatechnologies@gmail.com 2018-11-21 17:01:03 +05:30
parent cc9cbd52e1
commit b489fd4c37

View File

@ -14,7 +14,7 @@
<mat-form-field class="example-full-width">
<mat-select placeholder="City" [formControl]="myControl" multiple>
<mat-select-trigger style="color:#fff;">
{{myControl.value ? myControl.value[0].name : ''}}
{{myControl.value != null && myControl.value != '' ? myControl.value[0].name : ''}}
<span *ngIf="myControl.value?.length > 1" >
(+{{myControl.value.length - 1}} {{myControl.value?.length === 2 ? 'other' : 'others'}})
</span>
@ -30,7 +30,7 @@
<mat-form-field class="example-full-width">
<mat-select placeholder="Lender" [formControl]="myControl2" multiple>
<mat-select-trigger style="color:#fff;">
{{myControl2.value ? myControl2.value[0].short_name : ''}}
{{myControl2.value != null && myControl2.value != '' ? myControl2.value[0].short_name : ''}}
<span *ngIf="myControl2.value?.length > 1" >
(+{{myControl2.value.length - 1}} {{myControl2.value?.length === 2 ? 'other' : 'others'}})
</span>