1102 Commits

Author SHA1 Message Date
Hakeem 75e267da1d docs(docs-infra): fix update page styles to adhere to the new layout (#61256)
PR Close #61256
2025-05-14 08:47:31 -07:00
Hakeem bf8d52b497 docs(docs-infra): fixating the position of the docs content whether TOC exists or not (#61256)
PR Close #61256
2025-05-14 08:47:31 -07:00
Hakeem 4325243224 docs(docs-infra): integrate the new layout with the new changes (#61256)
fix new global layout issues, and make other pages adhere to the new centered layout like cli ref page, cli ref details, api ref details pages

PR Close #61256
2025-05-14 08:47:31 -07:00
Jan Martin ac77e30c76 docs: document the use of this in template expression syntax (#61250)
As of Angular 19, `this` should consistently reference the given
class property.

See: https://github.com/angular/angular/pull/55183
Co-authored-by: Jeremy Elbourn <jelbourn@google.com>
Co-authored-by: Matthieu Riegler <kyro38@gmail.com>

PR Close #61250
2025-05-14 06:35:56 -07:00
Miles Malerba c92c34d490 docs: update references to the cdk/testing apis (#60853)
PR Close #60853
2025-05-13 16:32:37 -07:00
Miles Malerba 07e8c3ef5e docs: generate api pages for cdk (#60853)
Generates html for the cdk api pages based on the json files imported
from angular/cdk-builds

PR Close #60853
2025-05-13 16:32:37 -07:00
Paul Gschwendtner 899cb4ab49 refactor: add explicit types for exports relying on inferred call return type (#61316)
As part of the Bazel toolchain migration we noticed that implicit types
generated by the TypeScript compiler sometimes end up referencing types
from other packages (i.e. cross-package imports).

These imports currently work just because the Bazel `ts_library` and
`ng_module` rules automatically inserted a `<amd-module
name="@angular/x" />` into `.d.ts` of packages. This helped TS figure
out how to import a given file. Notably this is custom logic that is not
occuring in vanilla TS or Angular compilations—so we will drop this
magic as part of the toolchain cleanup!

To improve code quality and keep the existing behavior working, we are
doing the following:

- adding a lint rule that reduces the risk of such imports breaking. The
  failure scenario without the rule is that API goldens show unexpected
  diffs, and types might be duplicated in a different package!

- keeping the `<amd-module` headers, but we manually insert them into
  the package entry-points. This should ensure we don't regress
  anywhere; while we also improved general safety around this above.

Long-term, isolated declarations or a lint rule from eslint-typescript
can make this even more robust.

PR Close #61316
2025-05-13 22:46:00 +00:00
Matthieu Riegler d1501bce5c docs(docs-infra): preselect search text on re-open (#61129)
PR Close #61129
2025-05-12 15:25:51 -07:00
Hakeem 223ca9f983 docs(docs-infra): limit the flexible width of the main content for better UX (#58831)
PR Close #58831
2025-05-09 10:24:15 -07:00
ahmadhakeem18 f9932e8b0d docs(docs-infra): fix the global layout of the site (#58831)
take the full width of the page for all the pages that use docs-viewer, also reserve an area for table of contents on-demand

Resolves: #52648

PR Close #58831
2025-05-09 10:24:15 -07:00
Joey Perrott 84b66f3b04 build: migrate adev shared-docs package to use ts_project (#61217)
Migrate the build rules for shared docs to use ts_project

PR Close #61217
2025-05-09 16:32:06 +00:00
Paul Gschwendtner 0e3d4546b9 build: migrate compiler-cli/src/ngtsc to ts_project (#61237)
Migrates all of `compiler-cli/src/ngtsc` to `ts_project`. This change
was generated using Gemini.

PR Close #61237
2025-05-09 16:01:49 +00:00
Paul Gschwendtner 1bfd7bbd1c build: prepare for compiler-cli to be using ts_project (#61237)
Prepare the compiler-cli package for being ready for migration
to `ts_project`.

PR Close #61237
2025-05-09 16:01:49 +00: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
Tom Adler 3cbb60c6dc docs: update descriptions of examples (#61207)
PR Close #61207
2025-05-08 09:40:20 -07: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
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
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
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
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
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
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
Matthieu Riegler 4fb74b00e0 docs(docs-infra): fix alert header inlining (#60708)
PR Close #60708
2025-04-30 08:18:08 -07:00
Ben Hong 3ea4e9d2fa docs: add relevant link to guides in learn angular tutorial (#60834)
PR Close #60834
2025-04-29 12:14:20 -07:00
Niclas Gleesborg b4c853b920 docs: Changed word optimally to optionally (#61041)
PR Close #61041
2025-04-29 09:52:42 -07:00
Matthieu Riegler 2c9bdc3f96 docs(docs-infra): prevent from resetting the search on navigation (#60927)
By keeping the search well allow developers to navigate through multiple results without having to re-type the search

PR Close #60927
2025-04-28 10:14:57 -07:00
hawkgs 578041bf3a docs(docs-infra): fix function api ref header width (#61022)
Fix the width of the function API reference header when the viewport width is for-desktop-down.

PR Close #61022
2025-04-28 10:01:41 -07:00
nevepura 0203e0bfdd Update dependency-injection.md (#61019)
Fixed list of ways to do dependency injection.
PR Close #61019
2025-04-28 08:30:53 -07:00
Kristiyan Kostadinov 54465e890f fix(docs-infra): use proper API for style overrides (#61008)
Setting CSS variables directly is fragile and isn't the officially supported way of override Material styles. Instead the `tabs-overrides` mixin should be used which has validation for the token names.

For future reference, these are the docs for the styling API: https://material.angular.io/components/tabs/styling

PR Close #61008
2025-04-28 08:19:18 -07:00
hawkgs 7d133c0cc7 docs(docs-infra): fix mat-tab colors (#61000)
Fix the text color of Material tabs.

PR Close #61000
2025-04-25 08:50:56 -07:00
Matthieu Riegler e27d983402 docs: remove old pipes docs. (#60996)
They were replaced by pipes entry in the template guides.

PR Close #60996
2025-04-24 09:42:50 -07:00
Matthieu Riegler 9e3665a843 docs(docs-infra): fix github links for for previews (#60994)
PR Close #60994
2025-04-24 09:30:26 -07:00
hawkgs 181fd67759 docs(docs-infra): use a custom scrollbar for the examples using HighlightTypeScript (#60981)
The examples used to render the native scrollbar.

PR Close #60981
2025-04-23 17:24:30 +02:00
Matthieu Riegler 7d2980982c docs(docs-infra): Improve doc support for pipes. (#60926)
This commits adds the pipe usage and the impure pipe mention.

PR Close #60926
2025-04-23 08:46:12 +02:00
Matthieu Riegler 455809858f docs: Update creating libraries to the current recommendations (#60931)
PR Close #60931
2025-04-22 11:57:53 +02:00
Matthieu Riegler 2f9c7041fd docs: fix NG2800 rendering (#60932)
PR Close #60932
2025-04-22 11:57:01 +02:00
ryncdr 2a65a12fce docs(docs-infra): first-app tutorial - step-14-http src-final correction (#60738)
Updated housing.service.ts > getHousingLocationById()
 - Added search parameter to fetch URL
 - Returns single object instead of array

PR Close #60738
2025-04-16 10:23:51 -04:00
Andrew Scott aaf07d8e4c docs: Add error handling documentation (#60848)
This adds a page to document the error handling practices, APIs, and features _in the framework_.
It does not contain any application-specific recommendations or
patterns as this information is subjective and domain-specific.

PR Close #60848
2025-04-15 17:35:02 -04:00
Jessica Janiuk 070c09f2b3 fix(docs-infra): prevent processing node_modules .md files (#60872)
If you happen to have node_modules installed for adev tutorials, there would be problems with trying to run adev tests. This excludes those node_modules folders.

PR Close #60872
2025-04-15 17:28:01 -04:00
Angular Robot 9ebe59fa1c build: update all non-major dependencies (#60869)
See associated pull request for more information.

PR Close #60869
2025-04-15 09:10:51 -04:00
Logan Dupont c80f24d658 docs: fix missing card-title tag in example of fallback-content section (#60855)
PR Close #60855
2025-04-14 11:01:07 -04:00
JoostK f6e52f26c7 docs: document that linkedSignal with previous should include type arguments (#60857)
Due to the cyclic nature of `previous`'s type and the computation's return type,
TypeScript isn't able to infer generic type arguments.

Closes #60423

PR Close #60857
2025-04-14 09:30:36 -04:00