Open
Description
Use input transforms wherever applicable.
example before:
@Input({required: true})
set lazy(component: RxInputType<Type<any>>) {
this.connect('component', coerceObservable(component));
}
example after:
@Input({required: true, transform: <T>(value: RxInputType<T>) => coerceObservable(value)})
set lazy(component: Observable<Type<any>>) {
this.connect('component', component);
}
or:
@Input({required: true, transform: coerceObservable<Type<any>>})
set lazy(component: Observable<Type<any>>) {
this.connect('component', component);
}
Activity