Angular OnPush Host Bindings v18
/Angular OnPush Host Bindings v18
Przegląda komponenty OnPush z wiązaniami hosta po wersji 18, gdy stan lub callbacki nie odświeżają widoku tak, jak trzeba.
- Autor
- janpereira-dev ↗
- Repozytorium
- ngautopilot ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 25.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 25.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
Przegląda komponenty OnPush z wiązaniami hosta po wersji 18, gdy stan lub callbacki nie odświeżają widoku tak, jak trzeba.
Oryginalny opis (EN)
Review OnPush components with host bindings after Angular 18 when host-bound state or external callbacks may not refresh as expected. Use when a bounded slice relies on ChangeDetectionStrategy.OnPush, host bindings, markForCheck, detectChanges, or manual refresh logic.
Jak działa
- Purpose
- When to Use
- When Not to Use
- Required Inputs
- Procedure
- Do
- Do Not
- Review Checklist
- Expected Output
- Exit Criteria
Podgląd SKILL.md
---
id: angular.upgrade.change-detection.angular-onpush-host-bindings-v18
name: Angular OnPush Host Bindings v18
description: >
Review OnPush components with host bindings after Angular 18 when host-bound state or external callbacks may not refresh as expected. Use when a bounded slice relies on ChangeDetectionStrategy.OnPush, host bindings, markForCheck, detectChanges, or manual refresh logic.
stack:
- Angular
- TypeScript
category: change-detection
status: stable
version: 0.11.0
owner: NgAutoPilot
triggers:
- OnPush
- host bindings
- markForCheck
- detectChanges
compatibility:
angular:
min: "18"
---
# Angular OnPush Host Bindings v18 Migration
## Purpose
Review OnPush components with host bindings after Angular 18.
## When to Use
- Components use `ChangeDetectionStrategy.OnPush`.
- Components rely on `@HostBinding`.
- Manual refresh logic exists.
## When Not to Use
- The app does not use OnPush or host bindings.
- The app is still in a version upgrade.
## Required Inputs
- OnPush components
- host bindings
- manual refresh logic
- tests for the target slice
## Procedure
1. Identify OnPush components with host-bound state.
2. Review external callback and refresh behavior.
3. Add explicit dirty-marking where needed.
4. Validate tests and UI state.
## Do
- Keep refresh triggers intentional.
- Validate third-party callback paths.
- Review visual state updates.
## Do Not
- Do not rely on implicit refresh behavior.
- Do not mix this with the version upgrade.
## Review Checklist
- [ ] Host-bound state updates correctly.
- [ ] Refresh logic is explicit.
- [ ] Tests pass.
## Expected Output
1. OnPush host binding summary.
2. Refresh logic updates.
3. Test result.
## Exit Criteria
- OnPush host binding risk is explicit.
Wersje
W bazie nie ma innych skilli o nazwie Angular OnPush Host Bindings v18.
Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 13.11.2026 · wersja paczki a3d1b21da1b5 (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-components
Buduje komponenty standalone Angular z wejściami Signals, zmianą detekcji OnPush, przepływem kontroli @if/@for i wzorcem smart-dumb. - 96angular-conventions
Opisuje nowoczesne standardy pisania kodu w Angular 18 i nowszych: sygnały, komponenty standalone, OnPush i wbudowane przepływy sterowania. - 100component
Generuje komponent Angular z sygnałami, OnPush i stylowaniem opartym na hoście według konwencji Momentum CMS, przy tworzeniu nowych komponentów UI w dowolnej bibliotece. - 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-performance
Stosuje techniki optymalizacji Angulara: OnPush, @defer i optymalizację obrazów przy poprawie Core Web Vitals. - 80Angular v21 Host Binding Typecheck
Przegląda sprawdzanie typów wiązań hosta w Angularze 21, gdy komponenty używają @HostBinding i mogą przestać się kompilować.