Section 1: Lab: รู้จัก Angular และเตรียมเครื่องมือ
- SPA คืออะไร และ Angular ทำงานคู่กับ REST API อย่างไร
- AngularJS, Angular รุ่นเดิมแบบ NgModule และ Angular รุ่นปัจจุบันต่างกันอย่างไร
- รอบการออกรุ่นและช่วง LTS ของ Angular
- ติดตั้ง Node.js และ Angular CLI แล้วสร้างโปรเจกต์ด้วย ng new
- Lab: รันแอปแรกด้วย ng serve และสำรวจไฟล์ main.ts กับ app.config.ts
Section 2: TypeScript ที่ต้องใช้ใน Angular
- Type, Interface และ Union Type
- Class, Access Modifier และ Decorator
- import และ export ระหว่างไฟล์
- Promise, async/await และ Observable เบื้องต้น
- Lab: เขียน Model ข้อมูลพนักงานด้วย Interface
Section 3: Lab: Standalone Component และ Data Binding
- สร้าง Component ด้วย ng generate และส่วนประกอบของ @Component
- Interpolation และ Property Binding
- Event Binding และ Two-way Binding
- แยกไฟล์ Template และ Style ของ Component
- Lab: การ์ดแสดงข้อมูลพนักงาน
Section 4: Lab: Signals และ Control Flow
- signal(), set() และ update() สำหรับเก็บ State
- computed() สำหรับค่าที่คำนวณจาก State อื่น
- แสดงผลตามเงื่อนไขด้วย @if และ @switch
- วนแสดงรายการด้วย @for พร้อม track และ @empty
- Lab: รายการพนักงานที่ค้นหาและนับจำนวนได้
Section 5: การสื่อสารระหว่าง Component
- รับค่าจาก Component แม่ด้วย input()
- ส่ง Event กลับด้วย output()
- Two-way Binding ระหว่าง Component ด้วย model()
- วางเนื้อหาจากภายนอกด้วย ng-content
- Lab: แยกหน้ารายการเป็น Component แม่และลูก