Skip to content

feat(compiler): allow template to access private props - #70188

Open
JeanMeche wants to merge 1 commit into
angular:mainfrom
JeanMeche:discard-private-props
Open

feat(compiler): allow template to access private props#70188
JeanMeche wants to merge 1 commit into
angular:mainfrom
JeanMeche:discard-private-props

Conversation

@JeanMeche

@JeanMeche JeanMeche commented Aug 13, 2026

Copy link
Copy Markdown
Member

To allow this we'll catch the errors during typechecking and discard it.

As context, when setting isolatedDeclarations: true this requires developers to explicitly type every property but the private ones. By allowing private properties to be used in templates we discard the actually for explicit typing for template only properties.

@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: compiler Issues related to `ngc`, Angular's template compiler labels Aug 13, 2026
@ngbot ngbot Bot added this to the Backlog milestone Aug 13, 2026
@JeanMeche
JeanMeche force-pushed the discard-private-props branch 2 times, most recently from 5b918f8 to 416c285 Compare August 13, 2026 21:19
@angular-robot angular-robot Bot added the area: build & ci Related the build and CI infrastructure of the project label Aug 13, 2026
@JeanMeche
JeanMeche force-pushed the discard-private-props branch 4 times, most recently from 6733a6f to 0509c48 Compare August 13, 2026 21:46
@JeanMeche
JeanMeche marked this pull request as ready for review August 13, 2026 22:42
@JeanMeche
JeanMeche force-pushed the discard-private-props branch 2 times, most recently from 1ab10b8 to b468975 Compare August 13, 2026 23:17
To allow this we'll catch the errors during typechecking and discard it.

As context, when setting `isolatedDeclarations: true` this requires developers to explicitly type every property but the `private` ones. By allowing private properties to be used in templates we discard the actually for explicit typing for template only properties.
@JeanMeche
JeanMeche force-pushed the discard-private-props branch from b468975 to f7a1fab Compare August 13, 2026 23:32
@JeanMeche
JeanMeche requested a review from alxhub August 13, 2026 23:33
@JeanMeche JeanMeche added target: minor This PR is targeted for the next minor release and removed area: build & ci Related the build and CI infrastructure of the project detected: feature PR contains a feature commit labels Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: compiler Issues related to `ngc`, Angular's template compiler target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants