angular
/angular
Eksperckie wsparcie w Angularze: Signals, komponenty standalone, wstrzykiwanie zależności, RxJS i SSR dla przedsiębiorczych aplikacji jednostronicowych.
- Autor
- G1Joshi ↗
- Repozytorium
- Agent-Skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 01.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 01.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Eksperckie wsparcie w Angularze: Signals, komponenty standalone, wstrzykiwanie zależności, RxJS i SSR dla przedsiębiorczych aplikacji jednostronicowych.
Oryginalny opis (EN)
Expert Angular assistance covering Signals, Standalone Components, dependency injection, RxJS, and SSR. Use when building enterprise Single Page Applications with modern Angular.
Jak działa
- When to Use
- Quick Start
- Core Concepts
- Common Patterns
- Best Practices
- Troubleshooting
- References
Podgląd SKILL.md
---
name: angular
description: Expert Angular assistance covering Signals, Standalone Components, dependency injection, RxJS, and SSR. Use when building enterprise Single Page Applications with modern Angular.
---
# Angular
Angular is an enterprise application framework featuring fine-grained reactivity via Signals, Standalone Components, built-in routing, and form validation.
## When to Use
- **Enterprise-Scale Single Page Applications (SPAs)**: Large multidisciplinary teams needing strict conventions, DI, and end-to-end tooling.
- **Modern Reactive Frontend Architecture**: Utilizing modern Angular Signals, computed values, and Zoneless change detection.
- **Progressive Web Apps & Hybrid Mobile**: Building performant, accessible mobile-ready web apps with Angular Material.
- **Complex Form & Validation Workflows**: Utilizing typed Reactive Forms with deep nested controls and custom async validators.
## Quick Start
```typescript
import { Component, signal, computed } from "@angular/core";
@Component({
selector: "app-counter",
standalone: true,
template: `
<p>Count: {{ count() }}</p>
<p>Double: {{ double() }}</p>
<button (click)="increment()">Increment</button>
`,
})
export class CounterComponent {
count = signal(0);
double = computed(() => this.count() * 2);
increment() {
this.count.update((c) => c + 1);
}
}
```
## Core Concepts
### Angular Signals & Fine-Grained Reactivity
State management using reactive primitives without Zone.js change detection overhead:
```typescript
import { Component, signal, computed, effect } from "@angular/core";
@Component({
selector: "app-cart-summary",
standalone: true,
template: `
<div class="cart-box">
<h3>Items in Cart: {{ itemCount() }}</h3>
<p>Subtotal: {{ total() | currency }}</p>
<button (click)="addItem('Item', 29.99)">Add Product</button>
</div>
`,
})
export class CartSummaryComponent {
items = signal<{ name: string; price: number }[]>([
{ name: "Initial License", price: 99.0 },
]);
itemCount = computed(() => this.items().length);
total = computed(() =>
this.items().reduce((sum, item) => sum + item.price, 0),
);
constructor() {
effect(() => {
console.log(`Cart total changed: $${this.total()}`);
});
}
addItem(name: string, price: number): void {
this.items.update((list) => [...list, { name, price }]);
}
}
```
### Dependency Injection & Typed HTTP Client
Consuming APIs with injected services and modern interceptors:
```typescript
import { Injectable, inject } from "@angular/core";
import { HttpClient } from "@angular/common/http";
import { Observable } from "rxjs";
export interface User {
id: string;
name: string;
email: string;
}
@Injectable({ providedIn: "root" })
export class UserService {
private http = inject(HttpClient);
private apiUrl = "/api/v1/users";
getUsers(): Observable<User[]> {
return this.http.get<User[]>(this.apiUrl);
}
createUser(user: Omit<User, "id">): Observable<User> {
return this.http.post<User>(this.apiUrl, user);
}
}
```
### Typed Reactive Forms with Custom Async Validators
Robust form state handling with full type safety:
```typescript
import { Component, inject } from "@angular/core";
import { FormBuilder, Validators, ReactiveFormsModule } from "@angular/forms";
@Component({
selector: "app-signup-form",
standalone: true,
imports: [ReactiveFormsModule],
template: `
<form [formGroup]="form" (ngSubmit)="onSubmit()">
<input formControlName="email" type="email" placeholder="Email" />
<input
formControlName="password"
type="password"
placeholder="Password"
/>
<button type="submit" [disabled]="form.invalid">Register</button>
</form>
`,
})
export class SignupFormComponent {
private fb = inject(FormBuilder);
form = this.fb.nonNullable.group({
email: ["", [Validators.required, Validators.email]],
password: ["", [Validators.required, Validators.minLength(8)]],
});
onSubmit(): void {
if (this.form.valid) {
console.log("Submitted values:", this.form.getRawValue());
}
}
}
```
## Common Patterns
### Reactive State with Angular Signals
**Problem**: Zone.js change detection triggers full-tree re-evaluation on every async event.
**Solution**:
Use modern Angular Signals for fine-grained reactivity:
```typescript
import { Component, signal, computed } from "@angular/core";
@Component({
selector: "app-counter",
standalone: true,
template: `
<p>Count: {{ count() }}</p>
<p>Double: {{ doubleCount() }}</p>
<button (click)="increment()">Increment</button>
`,
})
export class CounterComponent {
count = signal(0);
doubleCount = computed(() => this.count() * 2);
increment() {
this.count.update((n) => n + 1);
}
}
```
## Best Practices
**Do**:
- Build with standalone components (`standalone: true`), eliminating legacy `NgModule` boilerplate.
- Use modern Angular Signals (`signal()`, `computed()`, `input()`, `output()`) for declarative state.
- Configure `provideHttpClient(withFetch())` to enable high-performance browser fetch API.
- Enforce `ChangeDetectionStrategy.OnPush` across all components to prevent redundant render cycles.
**Don't**:
- Rely on Zone.js for new applications; migrate toward Zoneless change detection for lower bundle sizes.
- Mutate signal values directly; always use `.update()` or `.set()`.
- Forget to unsubscribe from RxJS observables or use `takeUntilDestroyed()` in component constructors.
## Troubleshooting
| Error | Cause | Solution |
| :---------------------------------------------------------- | :-------------------------------------------------------------- | :-------------------------------------------------------------------------- |
| `NG0100: ExpressionChangedAfterItHasBeenCheckedError` | Property mutated in lifecycle hook after change detection pass. | Move state mutation to `ngOnInit` or wrap in `Promise.resolve().then(...)`. |
| `NG0203: inject() must be called from an injection context` | Calling `inject()` outside of constructor or field initializer. | Move `inject(Service)` to component constructor or property declaration. |
| `NG0300: Multiple components match tag` | Component selector collision or duplicate declarations. | Ensure unique selector tags across standalone components. |
## References
- [Angular Documentation](https://angular.dev/)
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · G1Joshi/Agent-Skills | 100 | MIT |
| ericrisco/rsc-harness | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| bennypowers/cem | 100 | GPL-3.0 |
| nimadorostkar/Claude-Skills-collection | 100 | MIT |
| claude-dev-suite/claude-dev-suite | 100 | MIT |
| chrishuffman5/domain-expert | 100 | MIT |
| pingqLIN/skill-0 | 100 | MIT |
| dkbnull/hello-skill | 96 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 7218c6acfe6e (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100angular-expert
Dostarcza wiedzę ekspercką o Angularze, RxJS, TypeScript i wstrzykiwaniu zależności w aplikacjach klasy enterprise. - 100angular-architect
Generuje komponenty standalone w Angularze 17+, konfiguruje routing z lazy loading i strażnikami, wdraża NgRx i wzorce RxJS. - 100angular-idioms
Opisuje idiomatyczną architekturę Angular 19+: sygnały, komponenty standalone, wstrzykiwanie zależności, detekcję zmian OnPush i integrację z RxJS przy tworzeniu i refaktoryzacji aplikacji. - 100angular-architect
Pomaga budować aplikacje Angular 17+ z komponentami standalone i sygnałami: aplikacje korporacyjne, RxJS, NgRx, optymalizacja wydajności i rozbudowany routing. - 100angular-architect
Generuje komponenty standalone Angular 17, konfiguruje routing z lazy loading i strażnikami, implementuje NgRx i wzorce RxJS, optymalizuje wydajność bundla. - 100angular-standalone-components
Tworzy aplikacje Angular na komponentach standalone, z sygnałami, funkcją inject() i nowoczesnym routingiem.