revert: docs(core): correct SomeService to SomeComponent (#38325)
This reverts commit b4449e35bfd04c5858ded17c0ce56248d680e8d4. The example given from the previous change was for a component selector and not a provider selector. This change fixes it. Fixes #38323. PR Close #38325
This commit is contained in:
parent
cea46786a2
commit
6eca80b4aa
@ -327,7 +327,7 @@ export interface ViewChildDecorator {
|
|||||||
* * A template reference variable as a string (e.g. query `<my-component #cmp></my-component>`
|
* * A template reference variable as a string (e.g. query `<my-component #cmp></my-component>`
|
||||||
* with `@ViewChild('cmp')`)
|
* with `@ViewChild('cmp')`)
|
||||||
* * Any provider defined in the child component tree of the current component (e.g.
|
* * Any provider defined in the child component tree of the current component (e.g.
|
||||||
* `@ViewChild(SomeComponent) someComponent: SomeComponent`)
|
* `@ViewChild(SomeService) someService: SomeService`)
|
||||||
* * Any provider defined through a string token (e.g. `@ViewChild('someToken') someTokenVal:
|
* * Any provider defined through a string token (e.g. `@ViewChild('someToken') someTokenVal:
|
||||||
* any`)
|
* any`)
|
||||||
* * A `TemplateRef` (e.g. query `<ng-template></ng-template>` with `@ViewChild(TemplateRef)
|
* * A `TemplateRef` (e.g. query `<ng-template></ng-template>` with `@ViewChild(TemplateRef)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user