%%{init: {"theme": "base", "themeVariables": {"primaryColor": "#fabd2f", "primaryTextColor": "#282828", "primaryBorderColor": "#b57614", "lineColor": "#7c6f64", "secondaryColor": "#83a598", "tertiaryColor": "#b8bb26", "background": "#fbf1c7", "mainBkg": "#ebdbb2", "fontFamily": "Tahoma, sans-serif"}}}%% flowchart LR subgraph Era1["ยุคหน้าเดียว / Page Script"] A["HTML + JS ปนกันHard to Reuse"] end subgraph Era2["ยุค Component / Component Model"] B["แยก UI เป็นชิ้นReusable Component"] C["@Component Metadataประกาศ selector/template/style"] end subgraph Era3["ยุคออกแบบระบบ / Design System"] D["Nested Componentsประกอบเป็นหน้าจอ"] E["Shared Componentsใช้ซ้ำทั้งระบบ"] end A --> B --> C --> D --> E
%%{init: {"theme": "base", "themeVariables": {"primaryColor": "#fabd2f", "primaryTextColor": "#282828", "primaryBorderColor": "#b57614", "lineColor": "#7c6f64", "secondaryColor": "#83a598", "tertiaryColor": "#b8bb26", "background": "#fbf1c7", "mainBkg": "#ebdbb2", "fontFamily": "Tahoma, sans-serif"}}}%% flowchart TD A["@ComponentMetadata"] --> B["selectorชื่อเรียกใน HTML"] A --> C["template/templateUrlโครงสร้าง UI"] A --> D["styles/styleUrlsรูปแบบ CSS"] A --> E["classข้อมูลและ method"] E --> F["Template Bindingเชื่อมข้อมูลกับ UI"]
{{ description }}