Commit d4195b5
HF-238 - Review "Integration with Angular" guide and demo (#1691)
### Context
- Added a modern Angular (v20+) section — an example in the same style
as the demo: a service exposing a signal, a component using inject() +
OnPush, a template with @if/@for, and bootstrap with
provideZonelessChangeDetection.
- Marked the old example as the older-versions variant (BehaviorSubject
+ async pipe), while fixing its compatibility: the component is now
standalone with imports: [CommonModule], so it works without an
NgModule.
- Added a path for very old Angular (≤13) — an NgModule-based apps
subsection at the end of the "older" section, completing the three
tiers: modern → older/standalone → NgModule.
- Moved the Demo section right under the modern Angular code (StackBlitz
link, without describing the demo's internal standards).
- Clarified the "Provider scope" and "Cleanup" notes to state they apply
to both variants (they depend on DI scope, not on signals/RxJS).
In short: the guide was rewritten to show the modern pattern (matching
the demo) while preserving backward compatibility, with a clear split by
Angular version.
### How did you test your changes?
<!--- Describe in detail how you tested your changes. -->
### Types of changes
<!--- What types of changes does your code introduce? Put an `x` in each
box that applies. -->
- [ ] Breaking change (a fix or a feature because of which an existing
functionality doesn't work as expected anymore)
- [ ] New feature or improvement (a non-breaking change that adds
functionality)
- [ ] Bug fix (a non-breaking change that fixes an issue)
- [ ] Additional language file, or a change to an existing language file
(translations)
- [x] Change to the documentation
### Related issues:
1. Fixes #...
2.
3.
### Checklist:
<!--- Go through the points below, and put an `x` in each box that
applies. -->
<!--- If you're unsure about any of these, contact us. We're always glad
to help! -->
- [ ] I have reviewed the guidelines about [Contributing to
HyperFormula](https://hyperformula.handsontable.com/guide/contributing.html)
and I confirm that my code follows the code style of this project.
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] My change is compliant with the
[OpenDocument](https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part4-formula/OpenDocument-v1.3-os-part4-formula.html)
standard.
- [ ] My change is compatible with Microsoft Excel.
- [ ] My change is compatible with Google Sheets.
- [ ] I described my changes in the
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/master/CHANGELOG.md)
file.
- [ ] My changes require a documentation update.
- [ ] My changes require a migration guide.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Documentation-only changes to the Angular integration guide; no
runtime or library code affected.
>
> **Overview**
> Rewrites the **Integration with Angular** guide into a
**version-tiered** layout: a new **modern Angular (v20+)** path
(signals, `inject()`, OnPush, `@if`/`@for`,
`provideZonelessChangeDetection`) and a preserved **older** path
(`BehaviorSubject` + `async` pipe).
>
> The legacy example is updated for **standalone** components
(`standalone: true`, `imports: [CommonModule]`) and adds an
**`NgModule`-based** subsection for Angular 13 and below. Sample sheet
data in snippets changes from `[1, 2, '=A1+B1']` to `[1, 4, '=A1+B1']`.
**Provider scope** and **Cleanup** notes now state they apply to both
signal and RxJS variants.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
210c1ac. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Kuba Sekowski <jakub.sekowski@handsontable.com>
Co-authored-by: GreenFlux <support@greenflux.us>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Kuba Sekowski <kuba.sekowski.dev@gmail.com>
Co-authored-by: krzysztof.zielinski <kzielinski@speednet.pl>1 parent 79f2f15 commit d4195b5
1 file changed
Lines changed: 126 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
10 | 112 | | |
11 | 113 | | |
12 | 114 | | |
| |||
24 | 126 | | |
25 | 127 | | |
26 | 128 | | |
27 | | - | |
| 129 | + | |
28 | 130 | | |
29 | 131 | | |
30 | 132 | | |
| |||
45 | 147 | | |
46 | 148 | | |
47 | 149 | | |
48 | | - | |
| 150 | + | |
49 | 151 | | |
50 | 152 | | |
51 | 153 | | |
52 | 154 | | |
| 155 | + | |
53 | 156 | | |
54 | 157 | | |
55 | 158 | | |
56 | 159 | | |
57 | 160 | | |
58 | 161 | | |
| 162 | + | |
| 163 | + | |
59 | 164 | | |
60 | 165 | | |
61 | 166 | | |
| |||
88 | 193 | | |
89 | 194 | | |
90 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
91 | 211 | | |
92 | 212 | | |
93 | 213 | | |
94 | 214 | | |
| 215 | + | |
| 216 | + | |
95 | 217 | | |
96 | 218 | | |
97 | 219 | | |
| |||
0 commit comments