893 Commits

Author SHA1 Message Date
Matthieu Riegler a426bdf4d5 docs: update class & style binding recommendation (#59240)
This commit introduces an update to the official recommendations when it comes to class & styles bindings.

`[class]` & `[style]` bindings are now recommended for basic uses cases.

`[ngClass]` and `[ngStyle]` allow more advanced bindings (like space separated keys) or keys with units (for `ngStyle`) which are not supported by the native bindings. They still require the dedicated directives.

PR Close #59240
2025-01-15 12:27:12 -05:00
Jeremy Elbourn 9bd5b4ad9c 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:22 -05:00
carimatics f012494e1e docs(forms): escape inequality signs of input tags in flowchart (#59517)
The input tags written within the flowcharts in the document were not being escaped, so we did that.
This change will ensure that the flowcharts in the document are properly displayed.

PR Close #59517
2025-01-15 10:17:22 -05:00
Abdul Wahab 601994d842 docs: fix property wrong usage inside afterNextRender in lifecycle.md (#59521)
PR Close #59521
2025-01-14 16:27:39 -05:00
hawkgs e44bf24bb3 docs(docs-infra): fix scrolling issues in the API reference (#59207)
Fix issues related to scrolling in the API reference:
- Scroll to the top of the page when navigating to the API details page
- Preserve scroll position when navigating back from the API details page

PR Close #59207
2025-01-14 14:56:43 -05:00
hawkgs bb35df43b9 docs(docs-infra): change API reference list items order to top-down (#58655)
Change the order from left-right to top-down (columns) and additionally make columns equal width.

PR Close #58655
2025-01-14 11:10:53 -05:00
hawkgs e9d02d5ccf docs(docs-infra): fix SCSS build-time warnings (#59115)
Fix SCSS "declarations after nested rules" and `@import` warnings.

PR Close #59115
2025-01-14 11:09:24 -05:00
hawkgs 580dd65425 docs(docs-infra): generate errors and extended-diagnostics route NavigationItem-s (#59355)
Generate the `NavigationItem`-s as part of adev/shared-docs pipeline and use the output JSON files instead of the hardcoded objects in the `sub-navigation-data.ts`.

PR Close #59355
2025-01-14 11:00:07 -05:00
arturovt 8f7615c8d6 refactor(docs-infra): lazy-load EmbeddedTutorialManager in editor UI state (#59509)
In this commit, we lazy-load the `EmbeddedTutorialManager` in the editor UI state as done in other parts of the code.

PR Close #59509
2025-01-14 10:15:13 -05:00
arturovt 5ee7f85394 refactor(docs-infra): lazy-load EmbeddedTutorialManager in code editor (#59505)
In this commit, we lazy-load the `EmbeddedTutorialManager` in the code editor component as done in other parts of the code.

PR Close #59505
2025-01-13 15:00:26 -05:00
Amy Sorto 64f1bd7946 docs: add component harnesses guides (#59078)
PR Close #59078
2025-01-13 10:46:44 -05:00
arturovt eadc8a333a refactor(docs-infra): lazy-load EmbeddedTutorialManager in home editor (#59491)
In this commit, we lazy-load `EmbeddedTutorialManager` in the home editor component via `injectAsync` as done in other parts of the code.

PR Close #59491
2025-01-13 10:45:44 -05:00
Bobokhuja fea5c27a59 docs: fix typo example code in pipes documentation (#59312)
PR Close #59312
2025-01-13 10:38:07 -05:00
RafaelJCamara 343912e3b7 docs: add $default to path (#59383)
Closes: #59378

PR Close #59383
2025-01-13 10:36:18 -05:00
Matthieu Riegler a27463cc42 docs(docs-infra): remove sorting from API manager (#59427)
fixes #59423

PR Close #59427
2025-01-13 10:33:38 -05:00
PhilippMDoerner 64ad44e845 docs: Adjust lines of server.ts example in server-side-rendering docs (#59490)
docs: Adjust lines of server.ts example in ssr docs

The server.ts excerpt used in the server-side-rendering docs
(https://angular.dev/guide/ssr#configure-server-side-rendering)
does not fully encapsulate the commonEngine code-block.

It begins too early in line 31, leading to the inclusions of lines
from another codeblock that is not intended to be shown here:
```
 );  

// All regular routes use the Angular engine
```
It should be beginning with the line
`// All regular routes use the Angular engine`.

It also ends too soon, cutting off these parts of the code-block:
```
      .catch((err) => next(err));
  });
```
PR Close #59490
2025-01-13 10:32:15 -05:00
Matthieu Riegler 63ef2acc26 docs(docs-infra): prevent the host class from being replaced (#59460)
When removing the binding, the class defined on the host element is being replaced

fixes #59442

PR Close #59460
2025-01-10 14:03:39 -05:00
Aristeidis Bampakos 534368ce48 docs: update component scenarios guide (#59461)
PR Close #59461
2025-01-10 10:55:40 -05:00
Matthieu Riegler 178c619209 docs: update linkedSignal. (#59221)
The commit adds the mention that it is intentionnal that the computation is reactive even if there is an explicit `source`.

fixes #59094

PR Close #59221
2025-01-10 10:41:19 -05:00
Pawel Kozlowski 41fab1b53c refactor(docs-infra): simplify Preview component (#59404)
The Preview component contains a work-around for the
IFrame flickering issue https://github.com/angular/angular/issues/16994
Attempting a different work-around here.

PR Close #59404
2025-01-08 17:19:09 +00:00
arturovt ca1193d01f refactor(docs-infra): allow home editor to be cleaned up properly (#58164)
In this commit, we're replacing the `async-await` style in the `home-editor` component with the `from()`
observable, which allows us to invert a dependency and avoid memory leaks. Because an `async` function
has a closure, just like any other function in JavaScript, using `await` captures `this` until the
promise is resolved.

PR Close #58164
2025-01-08 15:23:16 +00:00
Matthieu Riegler 29b665f7ad docs(docs-infra): fix entry labels. (#59384)
fixes #59382

PR Close #59384
2025-01-08 15:22:43 +00:00
RafaelJCamara ede700731b docs: update README to reflect correct Angular repository branch in rendering regions (#59421)
PR Close #59421
2025-01-08 15:22:07 +00:00
Johnson Chu f3bc92b8af refactor: remove unnecessary TSLint rule flags (#59365)
There are many TSLint rule flags in the source code that have no effect, and they can be safely removed to keep the code clean.

PR Close #59365
2025-01-07 16:06:21 +00:00
Pawel Kozlowski c94a1e5527 refactor(docs-infra): code cleanups (#59395)
A handfull of different code cleanups in adev
components.

PR Close #59395
2025-01-07 15:51:12 +00:00
arturovt 4ed4d32d03 refactor(docs-infra): cleanup after render sequence in ReferenceScrollHandler (#58640)
In this commit, we're replacing the provided injector in `afterNextRender` with a node injector
because it was previously mistakenly passing an `EnvironmentInjector` in the `ReferenceScrollHandler`.

PR Close #58640
2025-01-07 15:50:30 +00:00
Angular Robot d3eff34377 build: lock file maintenance (#59385)
See associated pull request for more information.

PR Close #59385
2025-01-06 22:24:05 +00:00
arturovt d16dbb9470 refactor(docs-infra): allow playground component to be cleaned up properly (#58040)
In this commit, we're replacing the `async-await` style in the playground component with the `from()`
observable, which allows us to invert a dependency and avoid memory leaks. Because an `async` function
has a closure, just like any other function in JavaScript, using `await` captures `this` until the
promise is resolved.

PR Close #58040
2025-01-06 16:17:00 +00:00
Samuel Perez 7e40ef2a82 docs: Add NG0750 to errors list (#59265)
This PR adds error NG0750 to Error Encyclopedia.

Update adev/src/content/reference/errors/NG0750.md

Co-authored-by: Andrew Kushnir <43554145+AndrewKushnir@users.noreply.github.com>

Update adev/src/content/reference/errors/NG0750.md

Co-authored-by: Andrew Kushnir <43554145+AndrewKushnir@users.noreply.github.com>

PR Close #59265
2025-01-06 16:13:36 +00:00
Meehdi a4783c63f3 docs: fix mermaid polygon node text visibility in dark mode (#59285)
Fix visibility issue with text inside polygon nodes in mermaid diagrams when using dark mode theme to ensure proper contrast and readability

PR Close #59285
2025-01-06 16:12:51 +00:00
Matthieu Riegler 43e16beff3 docs: fix link to API entry AngularAppEngine (#59367)
fixes #59342

PR Close #59367
2025-01-06 16:11:01 +00:00
Juan Urquiza c297120a10 docs: changed name class (#59322)
PR Close #59322
2025-01-06 16:07:55 +00:00
Andrew Kushnir 8482a75539 docs: add a note about Incremental Hydration to the @defer docs (#59320)
PR Close #59320
2025-01-06 16:06:36 +00:00
Shai Reznik 6989b65427 docs: fix wrong link (#59277)
PR Close #59277
2025-01-06 16:04:21 +00:00
Matthieu Riegler 99b2646af6 docs: remove data attributes from api-item-label (#59273)
Perf measurments have revealed that `data-*` attributes are slower to set than classes.

PR Close #59273
2025-01-06 16:03:43 +00:00
Daniel Sogl f1b49ad25d docs: update example to use inject function and self closing tags (#59118)
PR Close #59118
2025-01-06 16:02:55 +00:00
Lang df7af2108a docs: update example code formatting (#59242)
PR Close #59242
2024-12-19 09:00:17 -07:00
Matthieu Riegler ae68df7d56 docs: fix dynamic template tutorial (#59234)
fixes #59228

PR Close #59234
2024-12-18 13:39:25 -08:00
m-housni e0362b2375 docs: fix typo in code example (#59235)
PR Close #59235
2024-12-18 09:37:23 -08:00
Sandeep Chaurasia bd91f91504 Update defer.md (#59231)
There was an extra Z letter which I think not neccessary.
PR Close #59231
2024-12-18 09:36:21 -08:00
Avcharov dd76f4e2e3 docs: Fix Code of Conduct Readme link (#59217)
PR Close #59217
2024-12-17 12:54:20 -08:00
Jessica Janiuk 09ee5b5d5d docs: add anti-patterns and notes about 3rd party scripts (#59210)
Some users are confused by the requirements of hydration around DOM manipulation, and this adds some clarity around those requirements.

PR Close #59210
2024-12-17 09:29:32 -08:00
Paul c2927ba94c docs(elements): Add limitations section (#58194)
PR Close #58194
2024-12-17 09:28:45 -08:00
Vlad Boisa f0df010644 docs(docs-infra): replace newline with <br> (#59156)
Replace the "\n" new line operator with <br> for wrap the text.
PR Close #59156
2024-12-16 16:31:08 -08:00
Angular Robot b476537ddd build: lock file maintenance (#59202)
See associated pull request for more information.

PR Close #59202
2024-12-16 15:22:39 -08:00
Lang f582816147 docs: remove unused import from example (#59200)
PR Close #59200
2024-12-16 15:21:24 -08:00
Lang 62703adf13 docs: use arrays in the impure pipe example (#59196)
PR Close #59196
2024-12-16 15:19:47 -08:00
Matthieu Riegler 6807072feb docs(docs-infra): remove costly localeCompare (#59106)
This function wasn't necessary, the items where already sorted.

fixes #59069d

PR Close #59106
2024-12-16 15:18:39 -08:00
Josh Benner b74e06e150 docs: Fix Dependency Injection Readme guide link (#59193)
PR Close #59193
2024-12-16 11:34:46 -08:00
hawkgs fa4419d2ae docs(docs-infra): make font styles consistent in the API code ToC (#59072)
Since code lines are wrapped in `<button>`-s, the native font styles overrides the parent's one which results in the font-family and font-size (esp. Safari) difference. This change fixes that.

PR Close #59072
2024-12-12 16:19:46 -08:00