Skip to content

Commit 21eed5f

Browse files
MeAkibJeanMeche
authored andcommitted
docs: fix self-referential link in defer block description
Replace broken link with inline code formatting. The link was pointing to the page itself, as no dedicated block concept page exists at that URL. corrects 'everytime' to 'every time'. Update tools/manual_api_docs/blocks/let.md Co-authored-by: Matthieu Riegler <kyro38@gmail.com>
1 parent e70994b commit 21eed5f

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎tools/manual_api_docs/blocks/defer.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
A type of [block](api/core/@defer) that can be used to defer load the JavaScript for components,
1+
The `@defer` block can be used to lazy load components,
22
directives and pipes used inside a component template.
33

44
## Syntax

‎tools/manual_api_docs/blocks/let.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Syntax
44

5+
<!-- prettier-ignore -->
56
```angular-html
67
@let name = user.name;
78
@let data = data$ | async;
@@ -10,7 +11,7 @@
1011
## Description
1112

1213
`@let` declarations are similar to [JavaScript's `let`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let) and
13-
their values can be any valid Angular expression. The expressions will be re-evaluated everytime the template is executed.
14+
their values can be any valid Angular expression. The expressions will be re-evaluated every time the template is executed.
1415

1516
Similarly to JavaScript variables, variables declared with `@let`, can be used:
1617

@@ -21,12 +22,12 @@ Similarly to JavaScript variables, variables declared with `@let`, can be used:
2122
@let user = user$ | async;
2223
2324
@if (user) {
24-
<h1>Hello, {{user.name}}</h1>
25-
<user-avatar [photo]="user.photo"/>
25+
<h1>Hello, {{ user.name }}</h1>
26+
<user-avatar [photo]="user.photo" />
2627
2728
<ul>
2829
@for (snack of user.favoriteSnacks; track snack.id) {
29-
<li>{{snack.name}}</li>
30+
<li>{{ snack.name }}</li>
3031
}
3132
</ul>
3233

0 commit comments

Comments
 (0)