sub-department-two.component copy.ts 748 Bytes
Newer Older
Natthaphat Pankiang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import { Component } from '@angular/core';

@Component({
  selector: 'app-sub-department-two',
  templateUrl: './sub-department-two.component.html',
  styleUrls: ['./sub-department-two.component.scss']
})
export class SubDepartmentTwoComponent {
  pathTitle = ['การจัดการข้อมูลองค์กร', 'ทะเบียนบริษัท', 'ทะเบียนบริษัท']
  activeTab: string = 'tab1';

  // ฟังก์ชันในการเปลี่ยนแท็บ
  changeTab(tab: { id: string, text: string }) {
    this.pathTitle = ['การจัดการข้อมูลองค์กร', 'ทะเบียนบริษัท', tab.text]
    this.activeTab = tab.id
  }
}