import { Component } from '@angular/core'; @Component({ selector: 'app-account-settings', templateUrl: './account-settings.component.html', styleUrls: ['./account-settings.component.scss'] }) export class AccountSettingsComponent { pathTitle = ['การจัดการข้อมูลองค์กร', 'ตั้งค่าผู้ใช้งาน', 'สร้างรหัสผู้ใช้งาน'] activeTab: string = 'tab1'; // ฟังก์ชันในการเปลี่ยนแท็บ changeTab(tab: { id: string, text: string }) { this.pathTitle = ['การจัดการข้อมูลองค์กร', 'ตั้งค่าผู้ใช้งาน', tab.text] this.activeTab = tab.id } }