Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Instruction file imported from JulianCissen/whos-next (.github/instructions/angular-rules.instructions.md). Copyright stays with the author.
Angular Rules
Every @Component must declare changeDetection: ChangeDetectionStrategy.OnPush.
All routes must be lazy-loaded with loadComponent and dynamic imports.
Target under 200 lines of TypeScript logic per component file.
Split a component when any of the following apply:
Template exceeds ~50 lines
Three or more visually unrelated sections in the template
Mixing data management with complex rendering logic
Approaching the 300-line file limit
Strategies for splitting: extract a presentational child component (@Input/@Output), extract a service for logic and state, extract a pipe for pure transformations, apply the smart/dumb pattern.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/juliancissen-whos-next-angular-rules-instructions/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.