Section 1: Lab: เริ่มต้น Angular 22
- ภาพรวม Angular ความต่างจาก AngularJS และการเปลี่ยนแปลงสำคัญในรุ่นหลัง
- ติดตั้ง Node.js และ Angular CLI แล้วสร้างโปรเจกต์ด้วย ng new
- โครงสร้างโปรเจกต์: main.ts, app.config.ts และ Standalone Component
- Zoneless และ OnPush ที่เป็นค่าเริ่มต้นใน Angular รุ่นปัจจุบัน
- Lab: รันโปรเจกต์ด้วย ng serve และติดตั้ง Angular DevTools
Section 2: TypeScript สำหรับ Angular
- Type, Interface และ Union Type ที่ใช้บ่อยใน Angular
- Class, Access Modifier และ Generic เบื้องต้น
- ES Module, import และ export ในโปรเจกต์
- async/await, Promise และภาพรวม Observable ของ RxJS
- Lab: สร้าง Model ข้อมูลสินค้าด้วย Interface
Section 3: Lab: ติดตั้ง Tailwind CSS 4 ใน Angular
- แนวคิด Utility-First และความต่างจาก CSS Framework แบบ Component
- ติดตั้งด้วย ng add tailwindcss และ @import "tailwindcss" ใน styles.css
- Utility สำหรับ Spacing, Typography, Color, Flexbox และ Grid
- กำหนดสี ฟอนต์ และ Design Token ของแบรนด์ด้วย @theme
- Lab: วาง Layout หน้าแรกด้วย Utility Class
Section 4: Responsive Design และการปรับแต่ง
- Breakpoint แบบ Mobile-First และ Container Query
- สถานะ hover, focus และ Dark Mode ด้วย Variant
- สร้าง Utility ของตัวเองด้วย @utility และเพิ่ม Plugin ด้วย @plugin
- เลือกระหว่าง Utility Class ใน Template กับ Style ของ Component
- Lab: Navbar, Card และ Footer ที่รองรับทุกขนาดหน้าจอ
Section 5: Lab: Standalone Component
- สร้าง Component ด้วย ng generate และองค์ประกอบของ @Component
- Template, Style และ Selector ของ Component
- import Component, Directive และ Pipe ที่ใช้ภายใน Component
- จัดโครงสร้างโฟลเดอร์ตามฟีเจอร์
- Lab: แยกหน้า Landing Page เป็น Component ที่ใช้ซ้ำได้