Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on programming.dev

3 replies

Kwa
derpzilla.net

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

1
magbeatreply
programming.dev

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.

2

You reached the end

Transform Inputs Properties in Angular Easy | Spyke