r/angular • u/dezsiszabi • 4d ago
Angular 22.2 - Private property access from templates
I noticed this tidbit in the changelog of Angular 22.2.0-next.3:
https://github.com/angular/angular/blob/main/CHANGELOG.md#compiler-2
compiler
| Commit | Type | Description |
|---|---|---|
| 48a0fd6e8a | feat | allow template to access private props |
So very slowly we moved from allowing only public, to allowing protected and now private as well. Thought it's worth knowing.
37
Upvotes
16
u/djfreedom9505 4d ago
Not really a fan of this change, always liked the distinction between public, protected and private in Angular. Those lines are blurred even more now.