32800 Commits

Author SHA1 Message Date
Alan Agius 7820f4ed68 ci: use --force-with-lease when pushing to remote branch (#61222)
Tentative fix for:
```
! [rejected]        20.0.x -> 20.0.x (fetch first)
error: failed to push some refs to 'https://github.com/angular-robot/angular.git'
```

PR Close #61222
2025-05-08 11:33:46 -07:00
Tom Adler 5b60442f6d docs: update the description of example (#61205)
PR Close #61205
2025-05-08 09:57:01 -07:00
Vlad Boisa 684af21fc9 docs: swap the anchor to the correct one (#61200)
The anchor on the link - is not working, swap the anchor to the correct one
PR Close #61200
2025-05-08 09:43:32 -07:00
Miles Malerba f11ce1dd15 ci: fix typo in update-cdk-apis job and mark it for megre (#61195)
Updates the name which accidentally remained unchanged from when I
copied it from the CLI help script

Also marks the PR for merge immediately. The caretaker can sanity check
it, approve it, and merge it.

PR Close #61195
2025-05-08 09:42:52 -07:00
Tom Adler 3cbb60c6dc docs: update descriptions of examples (#61207)
PR Close #61207
2025-05-08 09:40:20 -07:00
Alan Agius 655954a8d5 ci: fix step name (#61213)
This fixes the name of the step which was previously incorrect

PR Close #61213
2025-05-08 09:27:04 -07:00
Paul Gschwendtner d37f5085e4 build: migrate symbol-extractor to ts_project (#61209)
Migrates the symbol-extractor code to `ts_project`.

PR Close #61209
2025-05-08 09:23:48 -07:00
Paul Gschwendtner 1312eb1600 build: remove irrelevant madge circular deps tests (#61209)
We don't need this tooling anymore because we are already validating
that there are no circular dependencies via the `ng-dev` tooling that
checks `.ts` files directly.

Also these tests never actually failed to my knowledge.

PR Close #61209
2025-05-08 09:23:47 -07:00
Alan Agius 3b9440baed ci: use bash syntax for CURRENT_BRANCH in GitHub Actions (#61212)
Replaces incorrect use of GitHub Actions expression syntax `${{CURRENT_BRANCH }}` inside a run block with proper bash variablesyntax `$CURRENT_BRANCH`, preventing 'Unrecognized named-value' errors.

PR Close #61212
2025-05-08 16:32:43 +02:00
Alan Agius 62559545a1 ci: remove redundant dash in workflow file (#61206)
This appears to the reason why the workflow is erroring out that each step is required to have `uses` or `run`
PR Close #61206
2025-05-08 14:41:33 +02:00
Alan Agius e9c9cfd259 ci: add workflow to sync non-default branches (#61201)
This workflow addresses a limitation with Renovate's behavior in fork mode.  Renovate does not automatically sync non-default branches in forked repositories.

This workflow automates syncing forked non-default branches with their upstream counterparts.  This ensures Renovate can detect and apply updates to these branches, maintaining up-to-date dependencies across all relevant branches.

PR Close #61201
2025-05-08 13:29:54 +02:00
Angular Robot 4292d8aa47 docs: update Angular CDK apis [19.2.x] (#61186)
Updated Angular CDK api files.

PR Close #61186
2025-05-07 11:23:04 -07:00
Jan Martin fa2124a265 docs: document preventDefault() behavior for event listeners (#61184)
The `false` behavior has existed for a long time but hasn't really
been documented. It's also not _quite_ what the browser would do.

Finally, the page explicitly discourages the implicit `false` way
of preventing default. Biggest motivation (beyond code clarity) are
potential footguns like `(click)="myProp=x()"` which happens to prevent
default behavior iff `x()` happens to return `false`.

Fixes https://github.com/angular/angular.io/issues/2568

PR Close #61184
2025-05-07 11:21:45 -07:00
Tom Adler 3fc2ba4d8c docs: fix case of variable name (#61177)
PR Close #61177
2025-05-07 11:19:56 -07:00
Andrew Kushnir 4282488195 release: cut the v19.2.10 release 19.2.10 2025-05-07 09:22:38 -07:00
Vlad Boisa c081e040f6 docs: fix non-working link (#61131)
Swap non-working @link to just usual `` link to work


Same like #61011
PR Close #61131
2025-05-06 14:11:26 -07:00
Miles Malerba 974b2462a8 docs: update rendering to use generated repo link (#61143)
PR Close #61143
2025-05-06 14:09:46 -07:00
Miles Malerba 5765905b81 docs: update API generation to include repo name (#61143)
PR Close #61143
2025-05-06 14:09:46 -07:00
Kristiyan Kostadinov 4623b61448 fix(core): missing useExisting providers throwing for optional calls (#61152)
Fixes that the runtime was throwing a DI error when attempting to inject a missing `useExisting` provider, despite the call being optional.

The problem was that when the provider has `useExisting`, we do a second `inject` call under the hood which didn't include the inject flags from the original call.

Fixes #61121.

PR Close #61152
2025-05-06 14:06:24 -07:00
Joey Perrott e9e1c4328e build: update tslint configuration (#61146)
Update the configuration for tslint

PR Close #61146
2025-05-06 13:35:26 -07:00
Joey Perrott a9e31eb284 ci: migrate node target version for deploy script to node20 (#61103)
Migrate the generated script to target node20 which is already the environment we run the action in.

PR Close #61103
2025-05-06 13:34:22 -07:00
Joey Perrott 0f7e5de556 build: migrate documentation site deploy script to use ts_project (#61103)
Migrate to the new toolchain

PR Close #61103
2025-05-06 13:34:22 -07:00
Andrew Kushnir 93e2735d35 Revert "docs(docs-infra): fix first-app intro example (#61042)" (#61145)
This reverts commit ab91a355f8.

Revert reason: the change causes CI to fail (the `lint` CI job).

PR Close #61145
2025-05-06 11:06:23 -07:00
Tom Adler 267bc0ee91 docs: fix whitespace after a link (#61136)
PR Close #61136
2025-05-06 10:25:50 -07:00
Angular Robot 453b1d9864 build: update github/codeql-action action to v3.28.17 (#61134)
See associated pull request for more information.

PR Close #61134
2025-05-06 09:09:57 -07:00
Jan Martin a6f0d5bc20 fix(platform-server): less aggressive ngServerMode cleanup (#61106)
Other code may depend on `ngServerMode` and it might have been set
globally / via a bundler. Forcing it to `undefined` in those situations
can lead to hard debug issues where the only symptom is that "suddenly"
browser-specific code paths run on the server and (obviously) break.

PR Close #61106
2025-05-06 09:08:48 -07:00
Matthieu Riegler 11d9dc6fad docs(docs-infra): fix first-app intro example (#61042)
fixes #60844

PR Close #61042
2025-05-06 09:07:27 -07:00
Angular Robot 8772236708 build: update rules_angular digest to 42d4791 (#61126)
See associated pull request for more information.

PR Close #61126
2025-05-05 15:36:38 -07:00
Angular Robot ba5a3c04ab build: update rules_angular digest to 3ba9d67 (#61124)
See associated pull request for more information.

PR Close #61124
2025-05-05 09:24:34 -07:00
Jessica Janiuk cc48424a57 docs: add guide for using native CSS animations (#61118)
This adds a guide for how to switch from the
angular animations package over to native CSS
animations.

PR Close #61118
2025-05-05 08:45:41 -07:00
oliv37 6f4c209493 docs(docs-infra): update use production configuration (#61112)
PR Close #61112
2025-05-05 08:45:01 -07:00
Miles Malerba 6ce2672e65 docs: hide entries that are marked @docs-private (#61105)
PR Close #61105
2025-05-05 08:44:05 -07:00
Joey Perrott 238441a343 build: enable rules_js interop mode in ng-dev release (#61088)
This will result in the release tool automatically updating the Aspect
lock files when necessary.

PR Close #61088
2025-05-02 09:14:18 -07:00
Joey Perrott 45afac3bde build: update renovate config for rules_js hybrid mode (#61088)
This will automatically result in Renovate updating the Aspect lock
files.

PR Close #61088
2025-05-02 09:14:18 -07:00
Joey Perrott 437023b022 build: set up ts_project interop for rules_js migration (#61088)
The `ts_project` interop rule that we've built was also used in the
Angular CLI migration, and it allows us to mix `ts_project` and
`ts_library` targets; enabling an incremental migration. Additionally
set up the `ng_project` to replace `ng_module`.

PR Close #61088
2025-05-02 09:14:17 -07:00
Joey Perrott e117d0f4eb build: setup rules_ts for compiling TypeScript sources (#61088)
This commit sets up `rules_ts`, providing the `ts_library` equivalent
for the `rules_js` migration.

PR Close #61088
2025-05-02 09:14:17 -07:00
Joey Perrott a3300fa31b build: setup rules_js and link dependencies (#61088)
Sets up `rules_js` and links dependencies into the bazel-bin.

PR Close #61088
2025-05-02 09:14:17 -07:00
Joey Perrott efd6c1e054 build: update to bazel 6 (#61088)
This is necessary for an incremental migration to `rules_js` which
requires Bazel v6. Bazel v6 removed the managed directories feature,
which means we no longer can rely on symlinked node modules as the Bazel
repository; but rather need to duplicate dependencies. This is
okay/acceptable to enable the incremental migration.

PR Close #61088
2025-05-02 09:14:17 -07:00
Joey Perrott 79c68b4587 build: add .prettierignore configuration file (#61088)
Add a configuration file to prevent autogenerated files from being formatted.

PR Close #61088
2025-05-02 09:14:17 -07:00
Foysol Ahmed 968546976d docs: ViewContainerRef.createComponent jsdoc update (#61097)
Co-authored-by: Jessica Janiuk <1596273+thePunderWoman@users.noreply.github.com>
PR Close #61097
2025-05-02 07:57:11 -07:00
KryptonBD 8c6e101a61 docs: ViewContainerRef.createComponent jsdoc update to reflect actual behavior (#61097)
Fixes #59918

PR Close #61097
2025-05-02 07:57:11 -07:00
Angular Robot c522e9fd90 build: update angular/dev-infra digest to a4538b2 (#61096)
See associated pull request for more information.

PR Close #61096
2025-05-02 07:56:26 -07:00
Angular Robot 4d24254e59 docs: update Angular CDK apis [19.2.x] (#61093)
Updated Angular CDK api files.

PR Close #61093
2025-05-02 07:55:02 -07:00
Miles Malerba a4512ae8ca ci: add a script to copy cdk api files to adev (#61081)
Refactors the update-cli-help script into a generic script to copy json
assets, and uses the shared code to also copy the CDK apis

PR Close #61081
2025-05-01 15:00:42 -07:00
Matthieu Riegler 6c430d7881 fix(devtools): fix profiler support with @defer blocks (#61080)
Prior to this change, the devtools profile logged warnings "Unable to find parent node for ...".

PR Close #61080
2025-05-01 14:58:22 -07:00
arturovt 89056a0356 fix(common): cleanup updateLatestValue if view is destroyed before promise resolves (#61064)
Patch version of https://github.com/angular/angular/pull/58041.

PR Close #61064
2025-05-01 14:57:04 -07:00
Andrew Miller e11ded1b3c docs: Add docs for CoC plugin with neovim (#61005)
When docs were moved from aio to adev, the directions for the CoC plugin
were mistakenly dropped.

This brings back the documentation from prior versions:

https://v17.angular.io/guide/language-service#neovim

PR Close #61005
2025-05-01 08:41:47 -07:00
arturovt 5b77f93267 refactor(common): drop platform checks in HttpXsrfCookieExtractor (#59810)
Replaces `PLATFORM_ID` checks with `ngServerMode` within the `HttpXsrfCookieExtractor`. It is not part of the public API, and thus this change should not affect consumers who may have called the constructor directly.

PR Close #59810
2025-05-01 08:41:11 -07:00
arturovt c6148bd4f0 refactor(service-worker): drop error messages in production (#59702)
This commit provides tree-shakable error messages for the `service-worker` package.

PR Close #59702
2025-04-30 12:41:37 -07:00
arturovt 964b261a86 refactor(compiler): improve stringify (#60013)
This is the same change that was made in this commit (https://github.com/angular/angular/commit/cf3a5073ece9eb313bb4832b3f78aa1bfeca09c6). See its description for clarification.

PR Close #60013
2025-04-30 12:40:03 -07:00