Great usecase for the transforming @Input properties.

We will have to refactor a huge (and I mean huge) component for a customer in the near future. The consuming teams should not notice any of this. transform could be very useful for this.

1 point
Removed by mod
permalink
report
reply
1 point

Shouldn’t the @Input be of type SchedulerEvent[]? I don’t see where to get the transformed data otherwise

permalink
report
reply
2 points
*

When you are developing a UI library (as we are) we want to support the old API for some time and mark is a deprecated. So one would add a second @Input() of type ScheduleEvent[] leave the old API be as Course[] and mark it as deprecated. In the next major version you could then retire the old API.

permalink
report
parent
reply
1 point

I see, thanks

permalink
report
parent
reply

Angular

!angular@programming.dev

Create post

A community for discussion about angular

Wormhole

!godot@programming.dev

Logo base by Angular under CC BY 4.0 with modifications to add a gradient and drop shadow

Community stats

  • 8

    Monthly active users

  • 37

    Posts

  • 25

    Comments