Architecture: - Each brand has its own pages folder with Angular components - brand-routes.ts defines routes for default brand (dexar) - brand-routes.novo.ts defines routes for novo brand - angular.json fileReplacements swaps brand-routes.ts based on build config Structure: - src/app/brands/dexar/pages/ - Dexar HTML templates - src/app/brands/novo/pages/ - Novo components (TS + HTML) - src/app/brands/brand-routes.ts - Default (dexar) routes - src/app/brands/brand-routes.novo.ts - Novo routes This approach allows: - Adding 3rd, 4th, 5th brands by creating new folders - Each brand has completely separate templates - No @if conditionals needed in templates - Build-time separation (zero runtime overhead)
5.9 KiB
5.9 KiB