Matthieu Riegler
e2050759a4
docs: add error boundaries entries
2026-09-10 15:36:21 -07:00
Shuaib Hasan Akib
21eed5f8d4
docs: fix self-referential link in defer block description
...
Replace broken link with inline code
formatting. The link was pointing to the page itself, as no dedicated block concept page exists at that URL.
corrects 'everytime' to 'every time'.
Update tools/manual_api_docs/blocks/let.md
Co-authored-by: Matthieu Riegler <kyro38@gmail.com >
2026-07-29 09:45:11 -07:00
Maikel van Dort
9373d22a48
docs: remove semicolon text node
2026-07-29 08:48:34 -07:00
Matthieu Riegler
d55f5c4ce5
docs: Add mention that about signal narrowing on @switch blocks
2026-07-13 12:59:36 -07:00
Sam Severance
2e0ca49f32
docs: clarify @for track expression scope to include properties and methods
2026-05-05 17:02:52 -07:00
Matthieu Riegler
8bc31a515f
feat(core): Allow other expression for exhaustive typechecking
...
When the switched expression is nested within a union, exhaustive typechecking needs to know which expression to check.
This change adds the possibility of specifying the expression to check:
```
@Component({
selector: 'app-root',
imports: [],
template: `
@switch (state.mode) {
@case ('show') { {{ state.menu }}; }
@case ('hide') {}
@default never(state);
}
`,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class App {
state!: { mode: 'hide' } | { mode: 'show'; menu: number };;
}
```
fixes #67406
2026-03-24 14:42:28 -07:00
SkyZeroZx
6073493c5b
docs: Adds @see links and update defer reference
2026-03-09 16:59:39 -07:00
Matthieu Riegler
9dc3ca44ec
docs: add docs for @switch Exhaustive type checking
2026-02-24 10:53:43 -08:00
Matthieu Riegler
c09f5352f6
docs(docs-infra): Throw build error on invalid guide links
...
The list of valid links is generated from navigation data configuration in the ADEV app.
Redirections are knowingly exclude so we stop referencing them.
2026-01-12 13:38:20 -08:00
Matthieu Riegler
640693da8e
feat(compiler): Add support for multiple swich cases matching
...
consecutive `@case` blocks are now supported:
```ts
@switch (case) {
@case (0)
@case (1) {
case 0 or 1
}
@case (2) {
case 2
}
@default {
default
}
}
```
fixes #14659
2026-01-07 09:23:50 -05:00
Alan Agius
26fed34e0e
build: format md files
...
This commit configures prettier to format markdown files.
2025-11-06 10:03:05 -08:00
Jan Martin
f1fc574920
docs: call out the available variables in track expressions ( #61252 )
...
At least to me it was surprising that values from the surrounding
"lexical-ish" scope weren't available in `track <expr>`.
PR Close #61252
2025-05-16 07:51:09 +00:00
Jeremy Elbourn
c38ea0767e
docs: clarify that @for doesn't support break/continue ( #59533 )
...
We recently saw some confusion around this, so it's worth adding a
sentence to clarify
PR Close #59533
2025-01-15 12:00:21 -05:00
Sandeep Salwan
e702934080
docs: fix typos in let.md ( #59526 )
...
PR Close #59526
2025-01-15 09:44:25 -05:00
Kristiyan Kostadinov
e5adf92965
feat(core): stabilize @let syntax ( #57813 )
...
Removes the `@let` syntax from developer preview.
PR Close #57813
2024-09-16 12:16:12 +02:00
Ben Hong
055e0d9835
docs: update template in-depth guide ( #57475 )
...
PR Close #57475
2024-08-28 08:44:31 -07:00
Joey Perrott
3bdead1b2f
refactor(docs-infra): migrate api-gen from dev-infra into the repo ( #57241 )
...
Move the api-gen pipeline into the shared-docs directory.
PR Close #57241
2024-08-05 17:06:29 +00:00
Matthieu Riegler
a7b973eac5
docs(docs-infra): Use shiki for code highlighting ( #57059 )
...
PR Close #57059
2024-07-24 10:24:51 -07:00
Matthieu Riegler
0dfae930b5
docs: Add @let block entry to the API ( #57027 )
...
PR Close #57027
2024-07-18 15:22:41 -07:00
Fred Sauer
c8fa616681
docs: fix headings and code font in @for docs ( #57007 )
...
- Fix "Syntax" and "Description" h2 headings
- Fix code font in h3 headings
PR Close #57007
2024-07-18 11:07:42 -07:00
danieljancar
07d5e42dbb
docs: revise documentation for @for control flow, 'track $index' performance issues explanation, and confusing 'trackBy' mention ( #53806 )
...
PR Close #53806
2024-03-04 11:37:37 +01:00
Joey Perrott
fbaf989aa1
fix(docs-infra): include manually defined api reference docs in adev ( #54356 )
...
Include the manual defined api reference docs in adev
PR Close #54356
2024-02-09 14:58:28 +00:00
Matt Ezell
aef7b2c74e
docs: Corrected link for defer related blocks ( #52704 )
...
PR Close #52704
2024-01-26 20:38:36 +00:00
Andrea Canciani
ecbb47b208
refactor: fix a number of typos throughout the codebase ( #52826 )
...
Fix several typos, mostly in the `adev` site.
PR Close #52826
2024-01-25 22:54:59 +00:00
Jeremy Elbourn
64db486edc
build: add rules for generating block/element API data ( #52480 )
...
Adds build rules for "artificially" generating `DocEntry` collections for block and element APIs. The two rules are very similar, but _just_ different enough that it's worth having two separate implementations.
PR Close #52480
2023-11-02 11:02:08 -07:00