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
Is it possible to write something like this oversimplified snippet:
class Filterable<T, F> {
protected service: CrudService<T>
protected filter$ = new BehaviourSubject<F>(null);
protected filteredData$ = filter$.pipe(switchMap(f => this.service.filteredBy(f)) // use of this.service before initialization
filter(f: Partial<F>) {
this.filter$.next(f)
}
class ConcreteService extends CrudService<Foo, FooFilter> { ... }
class Controller extends Mixin(Filterable<Foo, FooFilter>, XXX) {
protected service = new ConcreteService(...);
(... random uses of filter() and filteredData$ )
}
The text was updated successfully, but these errors were encountered:
Is it possible to write something like this oversimplified snippet:
The text was updated successfully, but these errors were encountered: