<Fullstack Developer/>
ERICWEISLOGEL
Coming Soon
import { Observable, combineLatest, switchMap } from 'rxjs';import { map, filter, takeUntilDestroyed } from 'rxjs/operators'; @Component({ selector: 'app-root', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, templateUrl: './app.component.html',})export class AppComponent implements OnInit { private readonly service = inject(DataService); readonly data = signal<Item[]>([]); ngOnInit() { this.service.getAll().pipe( takeUntilDestroyed(this.destroyRef), switchMap(items => combineLatest( items.map(i => this.enrich(i)) )) ).subscribe(result => this.data.set(result)); }} // router.navigate(['/dashboard'], { queryParams });const stream$ = source$.pipe( filter(Boolean), map(transformData), catchError(handleError)); @Injectable({ providedIn: 'root' })export class NavigationService { private router = inject(Router); navigate(path: string) { this.router.navigate([path]); }}