Commit graph

35711 commits

Author SHA1 Message Date
Angular Robot
0905eb63b5 docs: update cross-repo adev docs
Updated Angular adev cross repo docs files.
2025-12-15 13:28:07 -08:00
Matthieu Riegler
3151c05e04 refactor(forms): add signal forms to the type tests
This will ensure that signal forms emit valid typings.
Also this commits moves `@standard-schema/spec` from peer-dep to regular dep

(cherry picked from commit 44d4439bc4)
2025-12-15 11:44:58 -08:00
kirjs
45e967b295 refactor(forms): convert Signal Forms errors to use RuntimeError
- Added 13 new error codes to forms/src/errors.ts (1900-1999)
- use RuntimeError

(cherry picked from commit 3a01d72850)
2025-12-15 11:44:06 -08:00
Angular Robot
e08350dfdd build: update dependency bazel to v8.5.0
See associated pull request for more information.

Closes #66067 as a pr takeover

(cherry picked from commit aabf719a6d)
2025-12-15 11:41:47 -08:00
Alan Agius
5148523bec build: remove API doc generation for localize/init and add mnemonic to API rendering rule.
The removed target was not used and was generating an empty output which causes `java.io.IOException: mandatory output packages/localize/init/localize_docs_html was not created`

(cherry picked from commit 2a5c6919d0)
2025-12-15 11:41:47 -08:00
Andrew Scott
def3c6636e docs: update link to releases for vscode extension
(cherry picked from commit a1eb2cef16)
2025-12-15 11:41:18 -08:00
Shuaib Hasan Akib
0dd5417352 docs: format CLI builder JSON examples using fenced blocks
Replaces custom docs-code components with fenced ```json``` blocks for
CLI builder examples, improving readability, consistency, and copy
support across the documentation.

Fixes #66060

(cherry picked from commit a2aa8fef05)
2025-12-15 11:35:01 -08:00
aparziale
01a6426ce3 docs(docs-infra): Fix broken link
Fix broken link side effects

Fix #66051

(cherry picked from commit a29a3988d6)
2025-12-15 11:34:00 -08:00
SkyZeroZx
3c417c7e56 docs: update code block syntax highlighting in documentation & fixed identation
(cherry picked from commit b043c7490f)
2025-12-15 11:33:34 -08:00
SkyZeroZx
15fd24d506 docs: replace @debugging tag with proper Markdown syntax
(cherry picked from commit 23fbe5cf9f)
2025-12-15 10:01:03 -08:00
Axel Jäger
23b2ca880a docs(forms): include update() in example for updating form value
(cherry picked from commit a1f5f52880)
2025-12-15 10:00:32 -08:00
Angular Robot
467a8aec63 build: update all github actions
See associated pull request for more information.
2025-12-15 09:59:39 -08:00
Matthieu Riegler
3267b98eb7 ci: enable embeddedLanguageFormatting for prettier
This allows to format inline templates

(cherry picked from commit f530b777b9)
2025-12-15 09:54:51 -08:00
SkyZeroZx
69b089a6c9 docs: Adds documentation for the NG0919 error
Adds a new documentation page for the NG0919 error, which indicates a circular dependency in Angular applications.

fixes  #65968

(cherry picked from commit bb65520991)
2025-12-15 09:52:20 -08:00
Joey Perrott
8d387658e1 ci: update google sync configuration to not include package.json
We don't use the package.json files within google3 and they don't need to be marked for sync

(cherry picked from commit 5f01f121df)
2025-12-15 09:51:23 -08:00
Matthieu Riegler
fe59d9abbc ci: fix deployement of previews
By pulling the fix angular/dev-infra/pull/3301

patch backport of #65971
2025-12-15 09:45:37 -08:00
Andrew Kushnir
534b1b507d Revert "refactor(compiler): remove unnecessary sanitization for safe attributes"
This reverts commit 128aef0ede.

(cherry picked from commit 8243bb3064)
2025-12-12 12:59:50 -08:00
Angular Robot
88e1829496 build: update cross-repo angular dependencies
See associated pull request for more information.
2025-12-12 11:41:17 -08:00
Matthieu Riegler
8cabd67faf docs: update guidelines.md to match best-practices.md
fixes #65953

(cherry picked from commit be5dbf45ba)
2025-12-12 10:10:37 -08:00
Angular Robot
d6b02a788b docs: update cross-repo adev docs
Updated Angular adev cross repo docs files.
2025-12-12 10:06:13 -08:00
Angular Robot
27bb376641 build: update cross-repo angular dependencies
See associated pull request for more information.
2025-12-12 09:54:50 -08:00
Miles Malerba
81772b420d feat(forms): pass field directive to class config
Updates signal forms to pass the full `Field` directive to the class
configuration functions, rather than just the state. This allows
developers to take the element as well as the state into consideration
when deciding classes to apply.

Closes #65762

BREAKING CHANGE: The shape of `SignalFormsConfig.classes` has changed

Previously each function in the `classes` map took a `FieldState`. Now
it takes a `Field` directive.

For example if you previously had:
```
provideSignalFormsConfig({
  classes: {
    'my-valid': (state) => state.valid()
  }
})
```

You would need to update to:
```
provideSignalFormsConfig({
  classes: {
    'my-valid': ({state}) => state().valid()
  }
})
```

(cherry picked from commit 348f149e8b)
2025-12-12 08:07:57 -08:00
Kristiyan Kostadinov
4c8fb3631d fix(core): throw better errors for potential circular references
Currently circular references in user code manifest themselves with an error like `Cannot read properties of undefined (reading 'ɵcmp')`. This is a bit cryptic so these changes add an assertion mentioning circular references.

Relates to #65917.

(cherry picked from commit 7be4ddef1c)
2025-12-12 08:06:30 -08:00
Alan Agius
b8cb6cda30 refactor(compiler): remove unnecessary sanitization for safe attributes
Remove sanitization for attributes that cannot execute code (e.g. `javascript: URIs`).

(cherry picked from commit 128aef0ede)
2025-12-12 08:06:03 -08:00
SkyZeroZx
6d9d2b83f6 refactor(common): remove redundant providedIn: 'root' from injection tokens
Removes unnecessary declarations from injection tokens

(cherry picked from commit 8485579649)
2025-12-12 08:05:34 -08:00
Angular Robot
0b90940461 build: update bazel dependencies
See associated pull request for more information.
2025-12-12 08:04:05 -08:00
Angular Robot
a507029666 docs: update cross-repo adev docs
Updated Angular adev cross repo docs files.
2025-12-12 08:01:08 -08:00
Angular Robot
87d20fd3ff build: update cross-repo angular dependencies
See associated pull request for more information.
2025-12-11 17:18:42 -08:00
Shuaib Hasan Akib
4d3b2bff88 docs: simplify example headers by showing only the file name
Removed redundant `src/app/` prefixes from <docs-code> headers to make
examples cleaner and easier to read. The full path remains available via
the `path` attribute, so the shortened headers improve clarity without
losing context.

(cherry picked from commit 63538524bc)
2025-12-11 17:17:09 -08:00
Andrew Xue
25f800712f docs(docs-infra): add primary color vars for tutorial button
(cherry picked from commit ff68806c67)
2025-12-11 17:11:31 -08:00
Leon Senft
8906814750 docs(forms): fix broken example
As written, the example rewrote the input value as the user edited it,
causing all kinds of confusing behavior which rendered the input nearly
unusable. While such implementations are possible, they require great
care to manage the cursor position while editing. For the sake of
brevity, this example now only updates the model on `blur` events; once
the user is done editing.

(cherry picked from commit f0ad30cce6)
2025-12-11 17:10:55 -08:00
SkyZeroZx
4781696edd docs: fixed tutorial steps with identation formatting
(cherry picked from commit c4e7ac1b81)
2025-12-11 17:10:18 -08:00
Angular Robot
25921f8c3c build: update all github actions
See associated pull request for more information.
2025-12-11 17:09:25 -08:00
SkyZeroZx
8ad00bc31a docs(docs-infra): Fix prefer/avoid rule matching with word boundaries
Improve code block rule detection by adding word-boundary anchors.
Also update indentation for consistency.

(cherry picked from commit a8fac4ce3b)
2025-12-11 17:08:54 -08:00
SkyZeroZx
3d25759117 docs(language-service): add link to hydration guide in built-in names documentation
Adds link to hydration guide for `hydrate` keyword

(cherry picked from commit ef45637ca8)
2025-12-11 17:06:39 -08:00
Charles
4c8564e2ce docs: overhaul unit testing overview guide
This commit introduces a series of improvements to the unit testing overview guide to enhance clarity, organization, and accuracy.

(cherry picked from commit 97c7025d7d)
2025-12-11 17:06:03 -08:00
Miles Malerba
eedcbbda4f docs(forms): add guide on designing form models
Adds a new guide on designing form model for signal forms

(cherry picked from commit fba0c88c9e)
2025-12-11 17:04:15 -08:00
Alex Rickabaugh
5a214653a8 release: cut the v21.0.5 release 2025-12-11 15:41:58 -08:00
Miles Malerba
4fd2b722b4 fix(forms): fix signal forms type error
Removes the `implements` clause on the `Field` directive since it is
causing type errors for people.

(cherry picked from commit d0097f7d0c)
2025-12-11 15:33:17 -08:00
SkyZeroZx
69d243abb7 fix(core): avoid false-positive deprecation when using InjectionToken with factory only
Prevents the deprecation warning that was incorrectly triggered when
defining an InjectionToken with only a `factory`, which correctly
defaults to the `root` scope.

(cherry picked from commit 4f6014a756)
2025-12-11 11:20:17 -08:00
Alex Rickabaugh
fa4e6e6763 release: cut the v21.0.4 release 2025-12-10 16:49:04 -08:00
Angular Robot
c937da491c build: update cross-repo angular dependencies
See associated pull request for more information.
2025-12-10 16:42:43 -08:00
jnizet
67a5a65a24 docs: fix typos and clarify root effect
(cherry picked from commit c63ef9cb6a)
2025-12-10 12:41:04 -08:00
Chathulanka Gamage
8a31eb8fb8 docs: update control-flow.md to replace else-if with else if
fix incorrect hyphenated form "else-if" and update documentation to match correct syntax "else if"

(cherry picked from commit 7674ada620)
2025-12-10 12:39:25 -08:00
Angular Robot
fe581f38fd build: update pnpm to v10.25.0
See associated pull request for more information.
2025-12-10 12:36:08 -08:00
Michael Small
de6dc043fb docs: add 'new' to page 'Side effects for non-reactive APIs'
(cherry picked from commit 3ab17876ba)
2025-12-10 12:27:30 -08:00
Matthieu Riegler
f20d301bdc refactor: spread rules with glob syntax
prettierignore does not support the glob syntax for multiple extensions.

(cherry picked from commit c429e701fc)
2025-12-10 12:26:57 -08:00
Matthieu Riegler
42c89f1c98 docs: add the version of angular being used to the footer
Include the version of angular being used for the build in the footer of the application

This is a backport of #64863
2025-12-10 12:24:50 -08:00
SkyZeroZx
6930a2e8c8 docs: update forwardRef usage with signals and add HostListener note
(cherry picked from commit bff2dcb93c)
2025-12-10 12:23:33 -08:00
Angular Robot
68a98118d2 build: lock file maintenance
See associated pull request for more information.
2025-12-10 12:22:25 -08:00