Content-Length: 275731 | pFad | http://github.com/angular/angular/commit/d99935a7ac29e4efa0f009fc194c3b56742bbbd6

E6 docs: update guide on referencing component children (#60787) · angular/angular@d99935a · GitHub
Skip to content

Commit d99935a

Browse files
TwoJays14atscott
authored andcommitted
docs: update guide on referencing component children (#60787)
PR Close #60787
1 parent 880ebf4 commit d99935a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: adev/src/content/guide/components/queries.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class UserProfile { }
146146

147147
If a child query (`viewChild` or `contentChild`) does not find a result, its value is `undefined`. This may occur if the target element is hidden by a control flow statement like `@if` or `@for`. Because of this, the child queries return a signal that include `undefined` in their value type.
148148

149-
If some cases, especially with `viewChild`, you know with certainty that a specific child is always available. In other cases, you may want to strictly enforce that a specific child is present. For these cases, you can use a *required query*.
149+
In some cases, especially with `viewChild`, you know with certainty that a specific child is always available. In other cases, you may want to strictly enforce that a specific child is present. For these cases, you can use a *required query*.
150150

151151
```angular-ts
152152
@Component({/* ... */})
@@ -156,7 +156,7 @@ export class CustomCard {
156156
}
157157
```
158158

159-
If a required query does not find a matching result, Angular reports an error. Because this guarantees that a result is available, require queries do not automatically include `undefined` in the signal's value type.
159+
If a required query does not find a matching result, Angular reports an error. Because this guarantees that a result is available, required queries do not automatically include `undefined` in the signal's value type.
160160

161161
## Query locators
162162

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/angular/angular/commit/d99935a7ac29e4efa0f009fc194c3b56742bbbd6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy