thebushidocollective avatar

Angular Rxjs Patterns

Handles the RxJS patterns you actually use in Angular apps: observable creation with HttpClient, the operator chain you're always looking up (switchMap vs mergeMap vs concatMap), and subscription cleanup. The source covers practical stuff like debouncing search inputs, combining multiple streams with combineLatest, error handling with retry strategies, and the modern takeUntilDestroyed approach that beats the old ngOnDestroy pattern. Useful when you're wiring up API calls, managing form state, or dealing with any async data flow. The examples are copy-paste ready, which matters when you just need to remember whether to use forkJoin or zip.

skills.sh installs
289
GitHub stars
200
last updated
Aug 21, 2026

Install

$ npx -y skills add thebushidocollective/han --skill angular-rxjs-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

Angular RxJS Patterns

Master RxJS in Angular for handling async operations, data streams, and reactive programming patterns.

Observable Creation

Basic Observable Creation

import { Observable, of, from, interval, fromEvent } from 'rxjs';

// of - emit values in sequence
const numbers$ = of(1, 2, 3, 4, 5);

// from - convert array, promise, or iterable
const fromArray$ = from([1, 2, 3]);
const fromPromise$ = from(fetch('/api/data'));

// interval - emit numbers at intervals
const timer$ = interval(1000); // Every second

// fromEvent - DOM events
const clicks$ = fromEvent(document, 'click');

// Custom observable
const custom$ = new Observable(subscriber => {
  subscriber.next(1);
  subscriber.next(2);
  subscriber.complete();
});

HttpClient Observables

import { HttpClient } from '@angular/common/http';
import { Injectable, inject } from '@angular/core';
import { Observable } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class DataService {
  private readonly http = inject(HttpClient);

  getData(): Observable<Data[]> {
    return this.http.get<Data[]>('/api/data');
  }

Sponsors

Details

Repository
github.com/thebushidocollective/han
Category
Frontend Development
First seen
Jun 3, 2026

More from thebushidocollective/han

All 14
1pproenca avatarswift-ui-architectpproenca/dot-skillsOpinionated SwiftUI architecture enforcement for iOS 26 / Swift 6.2 clinic modular MVVM-C apps using local SPM package boundaries. Enforces App-target `Dependen273skills.sh installs
2gentleman-programming avatarreact-19gentleman-programming/gentleman-skillsReact 19 patterns with React Compiler. Trigger: When writing React components - no useMemo/useCallback needed.270skills.sh installs
3mosif16 avatarproduct-frontend-designmosif16/codex-skillsReview and design SaaS/product marketing sites and frontend interfaces end-to-end: clarify value, fix hierarchy, and implement distinctive, production-grade UI 270skills.sh installs
4thedivergentai avatargodot-ui-rich-textthedivergentai/gd-agentic-skillsExpert blueprint for RichTextLabel with BBCode formatting (bold, italic, colors, images, clickable links) and custom effects. Covers meta tags, RichTextEffect s251skills.sh installs
5travisjneuman avatargeneric-react-ux-designertravisjneuman/.claudeProfessional UI/UX design expertise for React applications. Covers design thinking, user psychology (Hick's/Fitts's/Jakob's Law), visual hierarchy, interaction 250skills.sh installs
6sickn33 avatarc4-componentsickn33/antigravity-awesome-skillsc4 component246skills.sh installs