Skip to content

docs-bug(coercion): Add a statement on how these functions relate to the Angular@^16 input transformers #27718

@mwaibel-go

Description

@mwaibel-go

Documentation Feedback

#18840 suggested input decorators for input coercion. It seems like they have finally landed in v16 in the form of the transform property on the Input() decorator. It looks like CDK’s coerceBooleanProperty and Angular’s booleanAttribute even are the same function, albeit worded differently.

I would appreciate a documentation update either here in the coercion section or in the “base” Angular docs regarding the two approaches to coercion: Is one in some way superior to the other? Will CDK’s version get deprecated? Can/should code safely be upgraded from CDK conversion to ‘native’?

Affected documentation page

https://material.angular.io/cdk/coercion/overview

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/coerciondocsThis issue is related to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions