revert: docs(core): correct SomeService to SomeComponent (#38325)

This reverts commit b4449e35bf.

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:
Zara Cooper 2020-08-01 23:00:34 +03:00 committed by Alex Rickabaugh
parent ff9f4de4f1
commit 87baa06cc6
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ export interface ViewChildDecorator {
* * A template reference variable as a string (e.g. query `<my-component #cmp></my-component>`
* with `@ViewChild('cmp')`)
* * 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`)
* * A `TemplateRef` (e.g. query `<ng-template></ng-template>` with `@ViewChild(TemplateRef)