Shouldn’t the @Input be of type SchedulerEvent[]? I don’t see where to get the transformed data otherwise
this post was submitted on 13 Nov 2023
3 points (71.4% liked)
Angular
399 readers
2 users here now
A community for discussion about angular
Wormhole
Logo base by Angular under CC BY 4.0 with modifications to add a gradient and drop shadow
founded 2 years ago
MODERATORS
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.
I see, thanks