ngAfterViewInit() {
const filters = this.filters.map(f => f.changeFilter);
this.resources = combineLatest(...filters).pipe(
map(( filters : ActiveFilter[] ) =>
filters.map(filter => `${filter.group}=${filter.id}`).join("&"))
switchMap(this.getData)
);
}
getData( query ) {
// Simulate HTTP request..
return timer(1000).mapTo("https://api.com?" + query);
}