939 B
939 B
name, description
| name | description |
|---|---|
| angular-access-modifiers | Apply explicit TypeScript access modifiers to Angular component, directive, and pipe members. Use when editing or reviewing Angular class APIs in a repository that adopts this convention. |
angular-access-modifiers
Workflow
- Inspect the component’s template and callers before changing visibility.
- Use
protectedfor template-facing members when the project supports it,privatefor implementation details, andpublicfor intentional external APIs and lifecycle hooks. - Keep existing framework-required visibility when a compiler or decorator requires it.
- Run the project typecheck and relevant template tests.
Rules
- Do not change visibility only to satisfy a test; fix the test boundary or document the API.
- Prefer the repository’s established Angular convention if it differs.
Output
List changed members, their consumers, and verification results.