docs(core): update QueryList's onChange to changes.subscribe
This commit is contained in:
parent
cee2318110
commit
4bfe49cd42
@ -1166,7 +1166,7 @@ export var ViewChild: ViewChildFactory = makePropDecorator(ViewChildMetadata);
|
|||||||
* shown: boolean;
|
* shown: boolean;
|
||||||
*
|
*
|
||||||
* constructor(private @Query(Item) items:QueryList<Item>) {
|
* constructor(private @Query(Item) items:QueryList<Item>) {
|
||||||
* items.onChange(() => console.log(items.length));
|
* items.changes.subscribe(() => console.log(items.length));
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
|
@ -254,7 +254,7 @@ export class ContentChildMetadata extends QueryMetadata {
|
|||||||
* shown: boolean;
|
* shown: boolean;
|
||||||
*
|
*
|
||||||
* constructor(private @Query(Item) items:QueryList<Item>) {
|
* constructor(private @Query(Item) items:QueryList<Item>) {
|
||||||
* items.onChange(() => console.log(items.length));
|
* items.changes.subscribe(() => console.log(items.length));
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user