mirror of
https://github.com/angular/angular.git
synced 2026-11-22 22:55:25 -05:00
The downloadable AI context files were updated with the Angular v22 rules (OnPush by default, `model()`, `linkedSignal()`, Signal Forms, no `CommonModule`, `@Service`), but the Cursor rules file was missed and still recommended Reactive forms and `providedIn: 'root'`. Add the same rules to it, along with the accessibility, `NgOptimizedImage`, relative path and globals rules it was also missing. Also update the persona and example in the other files from Angular v20 to v22, and drop the `providedIn: 'root'` rule that contradicted the `@Service` rule below it, including in `best-practices.md`, which the other files are synced from.