Update Angular instructions to use signal inputs and queries (#70)

This commit is contained in:
Alan Sprecacenere 2025-07-10 01:37:37 +02:00 committed by GitHub
parent cdbf1c1923
commit e3509d1264
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ Instructions for generating high-quality Angular applications with TypeScript, u
### Component Design ### Component Design
- Follow Angular's component lifecycle hooks best practices - Follow Angular's component lifecycle hooks best practices
- Use `@Input()` and `@Output()` for component communication - When using Angular >= 19, Use `input()` `output()`, `viewChild()`, `viewChildren()`, `contentChild()` and `viewChildren()` functions instead of decorators; otherwise use decorators
- Leverage Angular's change detection strategy (default or `OnPush` for performance) - Leverage Angular's change detection strategy (default or `OnPush` for performance)
- Keep templates clean and logic in component classes or services - Keep templates clean and logic in component classes or services
- Use Angular directives and pipes for reusable functionality - Use Angular directives and pipes for reusable functionality