mirror of
https://github.com/kamask-dev/pchelpmaster.git
synced 2026-11-11 05:49:38 +00:00
chore(routing): default all routes to lazy client-side spa
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S47a8QARNgW1qNjVQ6bX8H
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
1dcf03cfa6
commit
68d75ca119
@@ -75,6 +75,11 @@ Delivery plan: after the first release the app ships as ONE Docker container (An
|
||||
- Prefer the `@Service` decorator over `@Injectable({providedIn: 'root'})` for new singleton services (Angular v22+)
|
||||
- Use the `inject()` function instead of constructor injection
|
||||
|
||||
## Routing
|
||||
|
||||
- All routes are lazy loaded (`loadComponent` / `loadChildren`), including feature-internal ones
|
||||
- All routes render as a plain client-side SPA (`RenderMode.Client` in `app.routes.server.ts`). Do NOT use SSR or prerender by default; enable them only for specific routes the user explicitly asks for
|
||||
|
||||
## Project Structure
|
||||
|
||||
- Organize code by feature, not by file type: `src/app/<feature>/` (e.g. `src/app/clients/`), not global `components/`, `services/`, `pipes/` folders
|
||||
|
||||
Reference in New Issue
Block a user