Update Angular integration guide to modern patterns (v20+)#1658
Draft
sequba wants to merge 1 commit intofeature/hf-122-framework-integration-guidesfrom
Draft
Update Angular integration guide to modern patterns (v20+)#1658sequba wants to merge 1 commit intofeature/hf-122-framework-integration-guidesfrom
sequba wants to merge 1 commit intofeature/hf-122-framework-integration-guidesfrom
Conversation
Rewrites the guide to follow current Angular idioms: standalone components (default since v19), signals instead of BehaviorSubject + async pipe, @if / @for control flow (replaces deprecated *ngIf / *ngFor from v20), inject() over constructor DI, DestroyRef.onDestroy() over ngOnDestroy, and explicit ChangeDetectionStrategy.OnPush. Drops the AppModule / CommonModule references that no longer apply to new projects.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feature/hf-122-framework-integration-guides #1658 +/- ##
============================================================================
Coverage 97.18% 97.18%
============================================================================
Files 174 174
Lines 15086 15086
Branches 3223 3223
============================================================================
Hits 14662 14662
Misses 424 424 🚀 New features to boost your workflow:
|
Performance comparison of head (33703c4) vs base (d6a316c) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
The Angular integration guide was using outdated patterns (NgModule, RxJS BehaviorSubject, async pipe, OnDestroy lifecycle hook). Angular 20+ has introduced new idiomatic approaches (standalone components, signals,
@if/@forcontrol flow,inject(),DestroyRef) that are now the recommended way to build Angular applications.This update modernizes the documentation to reflect current Angular best practices while maintaining clarity for developers using the library.
Changes
BehaviorSubjectandObservablewith Angular signals for simpler state management and automatic change detection@Componentdecorator andinject()for dependency injection*ngIfand*ngForwith@ifand@forbuilt-in control flowimplements OnDestroy/ngOnDestroy()withinject(DestroyRef).onDestroy()callback patternChangeDetectionStrategy.OnPushto the component example for better performancetoSignal()at component boundariesHow did you test your changes?
Documentation review only. The code snippets provided are syntactically correct Angular 20+ code following official Angular patterns and best practices.
Types of changes
Checklist:
https://claude.ai/code/session_01KG37ikpGHrkUUgcGKUotnW