From b489fd4c3751b657043df7d999a070e3b3df790e Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Wed, 21 Nov 2018 17:01:03 +0530 Subject: [PATCH] Dashboard : ps --- ng6-seed/src/app/dashboard/dashboard.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ng6-seed/src/app/dashboard/dashboard.component.html b/ng6-seed/src/app/dashboard/dashboard.component.html index 9e8d0c5a9..af25828e4 100644 --- a/ng6-seed/src/app/dashboard/dashboard.component.html +++ b/ng6-seed/src/app/dashboard/dashboard.component.html @@ -14,7 +14,7 @@ - {{myControl.value ? myControl.value[0].name : ''}} + {{myControl.value != null && myControl.value != '' ? myControl.value[0].name : ''}} (+{{myControl.value.length - 1}} {{myControl.value?.length === 2 ? 'other' : 'others'}}) @@ -30,7 +30,7 @@ - {{myControl2.value ? myControl2.value[0].short_name : ''}} + {{myControl2.value != null && myControl2.value != '' ? myControl2.value[0].short_name : ''}} (+{{myControl2.value.length - 1}} {{myControl2.value?.length === 2 ? 'other' : 'others'}})