remove the hardcoding of the name, replace wit the indexing 79/102379/2
authorseshukm <seshu.kumar.m@huawei.com>
Wed, 26 Feb 2020 08:43:45 +0000 (16:43 +0800)
committerxu ran <xuranyjy@chinamobile.com>
Wed, 26 Feb 2020 09:00:01 +0000 (09:00 +0000)
Issue-ID: USECASEUI-387

Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Change-Id: I00c16ef7782941fdfd41738b6aeb22d9e82a6bf3

usecaseui-portal/src/app/views/services/sotn-management/sotn-management.component.ts

index 84886f3..9038f05 100644 (file)
@@ -10,8 +10,7 @@ import { slideToRight } from '../../../shared/utils/animates';
 export class SotnManagementComponent implements OnInit {
 
   @HostBinding('@routerAnimate') routerAnimateState;
-
-  currentTab = 'Order Service';
+  selectedIndex:number = 0;
 
   constructor() { }
 
@@ -19,7 +18,10 @@ export class SotnManagementComponent implements OnInit {
   }
   
   handleTabChange($event): void {
-      console.log($event,"$event");
-      this.currentTab = $event.tab._title;
+    this.selectedIndex = $event.index;
+  }
+
+  changeTab() {
+    this.selectedIndex = 1;
   }
 }