Matthieu Riegler
a0be4c19ff
docs: fix Routed components example ( #61278 )
...
fixes #61277
PR Close #61278
2025-05-16 09:14:38 +00:00
Angular Robot
a4bac2a339
docs: update Angular CDK apis ( #61395 )
...
Updated Angular CDK api files.
PR Close #61395
2025-05-16 08:30:14 +00:00
Alan Agius
d3f667ab31
Revert "docs: update Angular CDK apis [main] ( #61346 )" ( #61394 )
...
This reverts commit eb9806ab0e so that we can test the workflow.
PR Close #61394
2025-05-16 08:08:44 +00:00
Andrew Scott
da67f4705c
fix(docs-infra): Correctly support the CLI tutorial type ( #61246 )
...
There were a myriad of problems when using the type: 'cli' for a
tutorial:
* Editor component would flicker the non-cli version first since that
was the default value. Fixed by not showing anything until type is
available
* Editor component still rendered a split screen when there was no
preview. Fixed
* Project initialization was incorrect because the terminal would appear
to be available but really didn't work until dependencies were done
installing. Fixed by sharing initialization with regular project init
and piping the install output to the interactive terminal
* Terminals would not work when going from type: 'cli' to another or
vice versa. This is because the element instance of a terminal cannot
change once it is opened. Fixed by dispoing and recreating terminals
when the element changes
PR Close #61246
2025-05-16 07:50:24 +00:00
Angular Robot
eb9806ab0e
docs: update Angular CDK apis [main] ( #61346 )
...
Updated Angular CDK api files.
PR Close #61346
2025-05-16 07:38:42 +00:00
Andrew Seguin
25317dd958
docs: make drag and drop examples preview ( #59737 )
...
PR Close #59737
2025-05-16 07:38:03 +00:00
Miles Malerba
a31648d9aa
docs: fix embedded preview ( #59737 )
...
update the embeddable examples glob to captrue the drag & drop examples,
and fix the current build issues in the drag & drop examples
PR Close #59737
2025-05-16 07:38:03 +00:00
Andrew Seguin
086d2f70cf
docs: add preview to an example to test ( #59737 )
...
PR Close #59737
2025-05-16 07:38:03 +00:00
Miles Malerba
59ad8edf24
ci: fix build ( #59737 )
...
Deletes the BUILD.bazel in examples/drag-drop so the files can be
collected in examples/BUILD.bazel instead
PR Close #59737
2025-05-16 07:38:03 +00:00
Amy Sorto
4f387126e6
docs: add code examples for drag and drop guide ( #59737 )
...
# Conflicts:
# adev/src/content/guide/BUILD.bazel
PR Close #59737
2025-05-16 07:38:03 +00:00
Amy Sorto
4afb2eea42
docs: add drag and drop guide ( #59737 )
...
PR Close #59737
2025-05-16 07:38:02 +00:00
Will 保哥
dee2dde793
docs: update Traditional Chinese footer link ( #61280 )
...
update Traditional Chinese footer link from angular.tw to dev.angular.tw to direct users to the new Traditional Chinese dev site.
PR Close #61280
2025-05-16 07:36:19 +00:00
Angular Robot
ee0d9bd1cd
build: update dependency diff to v8 ( #61386 )
...
See associated pull request for more information.
PR Close #61386
2025-05-16 07:30:47 +00:00
Matthieu Riegler
55a9921b58
docs: add llms.txt ( #61285 )
...
PR Close #61285
2025-05-15 10:09:10 -07:00
Hakeem
4db2166419
docs(docs-infra): fix update page styles to adhere to the new layout ( #61256 )
...
PR Close #61256
2025-05-14 08:47:29 -07:00
Hakeem
395d3bc4cb
docs(docs-infra): fixating the position of the docs content whether TOC exists or not ( #61256 )
...
PR Close #61256
2025-05-14 08:47:29 -07:00
Hakeem
abef774485
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:29 -07:00
Andrew Scott
9e5bcc04f7
refactor(docs-infra): remove component suffix from democomponent ( #61254 )
...
this removes the component suffix from the DemoComponent in tutorials
PR Close #61254
2025-05-14 08:46:28 -07:00
Andrew Scott
989e3f0a88
refactor(docs-infra): remove component suffix from first-app tutorial ( #61254 )
...
this removes the component suffix from the first-app tutorial steps
PR Close #61254
2025-05-14 08:46:28 -07:00
Andrew Scott
03ae3860c2
refactor(docs-infra): remove component suffix from learn-angular tutorial ( #61254 )
...
this removes the component suffix from the learn-angular tutorials
PR Close #61254
2025-05-14 08:46:28 -07:00
Andrew Scott
b8a0e6b7ea
refactor(docs-infra): remove component suffix from playground ( #61254 )
...
this removes the component suffix from playground components
PR Close #61254
2025-05-14 08:46:28 -07:00
Andrew Scott
19da174ce1
refactor(docs-infra): Remove component suffix from deferrable views tutorial ( #61254 )
...
This commit removes the component suffix from the deferrable views tutorial
PR Close #61254
2025-05-14 08:46:28 -07:00
Andrew Scott
29f873b5f2
refactor(docs-infra): Remove 'component' suffix from App[Component] in tutorials ( #61254 )
...
This commit refactors the tutorials to drop the Component suffix from
AppComponent, both from the TS file and the CSS.
PR Close #61254
2025-05-14 08:46:28 -07:00
Jan Martin
4108efaee6
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:55 -07:00
Angular Robot
0fc0d67146
build: update cross-repo angular dependencies ( #61286 )
...
See associated pull request for more information.
PR Close #61286
2025-05-14 10:43:35 +00:00
Angular Robot
c34efccef0
build: lock file maintenance ( #61266 )
...
See associated pull request for more information.
PR Close #61266
2025-05-13 16:35:32 -07:00
Miles Malerba
612e3970de
docs: update references to the cdk/testing apis ( #60853 )
...
PR Close #60853
2025-05-13 16:32:35 -07:00
Miles Malerba
cf57c3a073
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:35 -07:00
Paul Gschwendtner
810b0a7e5c
refactor: add explicit types for exports relying on inferred call return type ( #61312 )
...
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 #61312
2025-05-13 22:45:18 +00:00
Andrew Scott
1755e09d0a
refactor(docs-infra): Clean up embedded editor code ( #61242 )
...
This commit cleans up the embedded editor code quite a bit by making
better use of current signal APIs
PR Close #61242
2025-05-12 15:32:25 -07:00
Matthieu Riegler
ba38e1c301
docs(docs-infra): preselect search text on re-open ( #61129 )
...
PR Close #61129
2025-05-12 15:25:50 -07:00
Andrew Scott
3c9b8d9de5
refactor(docs-infra): Remove rethrowing error handler ( #61243 )
...
This is no longer necessary since the work in the FW to rethrow in the
TestBed error handler.
PR Close #61243
2025-05-09 10:40:14 -07:00
Jens Kuehlers
9fb0fc84dc
docs: change supported versions when v20 releases ( #61238 )
...
PR Close #61238
2025-05-09 10:33:35 -07:00
Matthieu Riegler
3eeea56ba0
refactor(core): remove compileComponents invocations ( #61032 )
...
Those weren't necessary.
PR Close #61032
2025-05-09 10:27:14 -07:00
Hakeem
108043fa76
docs(docs-infra): limit the flexible width of the main content for better UX ( #58831 )
...
PR Close #58831
2025-05-09 10:24:13 -07:00
ahmadhakeem18
20fdeab612
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:13 -07:00
Joey Perrott
5f1c08d75f
build: migrate adev shared-docs package to use ts_project ( #61193 )
...
Migrate the build rules for shared docs to use ts_project
PR Close #61193
2025-05-09 16:30:05 +00:00
Paul Gschwendtner
10bc80a788
build: migrate compiler-cli/src/ngtsc to ts_project ( #61181 )
...
Migrates all of `compiler-cli/src/ngtsc` to `ts_project`. This change
was generated using Gemini.
PR Close #61181
2025-05-09 15:59:46 +00:00
Paul Gschwendtner
54e785683a
build: prepare for compiler-cli to be using ts_project ( #61181 )
...
Prepare the compiler-cli package for being ready for migration
to `ts_project`.
PR Close #61181
2025-05-09 15:59:46 +00:00
Tom Adler
11727ddff4
docs: update the description of example ( #61205 )
...
PR Close #61205
2025-05-08 09:56:59 -07:00
Vlad Boisa
b3bb2a16f2
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:30 -07:00
Tom Adler
a8062edcfa
docs: update descriptions of examples ( #61207 )
...
PR Close #61207
2025-05-08 09:40:19 -07:00
Angular Robot
516fdcc492
docs: update Angular CDK apis [main] ( #61188 )
...
Updated Angular CDK api files.
PR Close #61188
2025-05-07 11:24:59 -07:00
Jan Martin
66b4c89b6f
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:44 -07:00
Matthieu Riegler
fb62506894
docs: update versions support for v20 ( #61180 )
...
PR Close #61180
2025-05-07 11:20:46 -07:00
Tom Adler
893308ab17
docs: fix case of variable name ( #61177 )
...
PR Close #61177
2025-05-07 11:19:55 -07:00
cexbrayat
f06edf5fad
docs: update references of afterEveryRender ( #61159 )
...
Since `afterRender` has been renamed `afterEveryRender`, some docs needed to be updated.
PR Close #61159
2025-05-07 11:17:56 -07:00
Matthieu Riegler
4a14c292ee
docs(docs-infra): Version info are pulled from an json file. ( #60870 )
...
It should pull the file from the main adev site and fallback to local data is anything goes wrong
PR Close #60870
2025-05-07 11:13:56 -07:00
Miles Malerba
47e44c8af0
docs: update rendering to use generated repo link ( #61130 )
...
PR Close #61130
2025-05-06 14:07:32 -07:00
Miles Malerba
72284bcda5
docs: update API generation to include repo name ( #61130 )
...
PR Close #61130
2025-05-06 14:07:31 -07:00