How duetds/duet-example-angular works
Main Application Structure
a. Client-Side Architecture (Single-Page Application)
• Divide it into the following logical layers:
Component Hierarchy
Core Components:
• App Component (Root)
• Header Component
• Index Page Component
• Investment Origin Component
• Investment Amount Component
• Summary Component
• Footer Component
Services Layer
Supporting services:
• Currency Formatter Service
• Routing Module
Design System Integration
• Duet Web Components (@duetds/angular)
• Duet Design Tokens
• Duet CSS Framework
• Duet Fonts
• Double lines: Component composition
Services (Bottom)
Specific elements:
Main Container
• Angular Application |
• (Duet Example App) |
Component Flow
Header → Index Page → Investment Origin → Investment Amount → Summary → Footer
Design System Integration
• Duet Design System |
• Components |
• Tokens |
• CSS Framework |
• Fonts |
Services
• Currency Formatter |
• Service |
Agreement model's relationship with components
Keep the abstraction level focused on the architectural components while showing the relationship between the Duet Design System and the application components. This will help developers understand both the application structure and how it leverages the design system.