Skip to content

Commit

Permalink
docs: fix missing example
Browse files Browse the repository at this point in the history
preview is hidding was responsible for hidding the content.

fixes angular#55583
  • Loading branch information
JeanMeche committed Apr 30, 2024
1 parent 0d78a92 commit 430a040
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions adev/src/content/best-practices/a11y.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ The following example shows how to make a progress bar accessible by using host
The ARIA attribute `aria-valuenow` is bound to the user's input.
* In the template, the `aria-label` attribute ensures that the control is accessible to screen readers.

<docs-code-multifile
path="adev/src/content/examples/accessibility/src/app/app.component.ts"
preview>
<docs-code-multifile>
<docs-code
path="adev/src/content/examples/accessibility/src/app/progress-bar.component.ts"
language="ts"
linenums
highlight="[12, 20]"/>
<docs-code
path="adev/src/content/examples/accessibility/src/app/app.component.html"
language="html"
linenums
highlight="[8, 9]"/>
</docs-code-multifile>
Expand Down
2 changes: 1 addition & 1 deletion adev/src/content/guide/pipes/change-detection.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ The tabs for the example show the following:
| flying-heroes.component.html | Template with the new pipe used. |
| flying-heroes.pipe.ts | File with custom pipe that filters flying heroes. |

<docs-code-multifile path="adev/src/content/examples/pipes/src/app/flying-heroes.component.ts_FlyingHeroesComponent" preview>
<docs-code-multifile>
<docs-code header="src/app/flying-heroes.component.html" path="adev/src/content/examples/pipes/src/app/flying-heroes.component.html" visibleRegion="template-flying-heroes"/>
<docs-code header="src/app/flying-heroes.pipe.ts" path="adev/src/content/examples/pipes/src/app/flying-heroes.pipe.ts" visibleRegion="pure"/>
</docs-code-multifile>
Expand Down
6 changes: 3 additions & 3 deletions adev/src/content/guide/pipes/transform-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The following code example shows two component definitions:
| `exponential-strength.pipe.ts` | Defines a custom pipe named `exponentialStrength` with the `transform` method that performs the transformation. It defines an argument to the `transform` method \(`exponent`\) for a parameter passed to the pipe. |
| `power-booster.component.ts` | Demonstrates how to use the pipe, specifying a value \(`2`\) and the exponent parameter \(`10`\). |

<docs-code-multifile preview path="adev/src/content/examples/pipes/src/app/power-booster.component.ts">
<docs-code header="src/app/exponential-strength.pipe.ts" path="adev/src/content/examples/pipes/src/app/exponential-strength.pipe.ts"/>
<docs-code header="src/app/power-booster.component.ts" path="adev/src/content/examples/pipes/src/app/power-booster.component.ts"/>
<docs-code-multifile>
<docs-code header="src/app/exponential-strength.pipe.ts" language="ts" path="adev/src/content/examples/pipes/src/app/exponential-strength.pipe.ts"/>
<docs-code header="src/app/power-booster.component.ts" language="ts" path="adev/src/content/examples/pipes/src/app/power-booster.component.ts"/>
</docs-code-multifile>

0 comments on commit 430a040

Please sign in to comment.