You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#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’?