docs(core): update QueryList's onChange to changes.subscribe

This commit is contained in:
Shuhei Kagawa 2016-01-01 17:15:41 +09:00 committed by Alex Eagle
parent cee2318110
commit 4bfe49cd42
2 changed files with 2 additions and 2 deletions

View File

@ -1166,7 +1166,7 @@ export var ViewChild: ViewChildFactory = makePropDecorator(ViewChildMetadata);
* shown: boolean;
*
* constructor(private @Query(Item) items:QueryList<Item>) {
* items.onChange(() => console.log(items.length));
* items.changes.subscribe(() => console.log(items.length));
* }
* }
* ```

View File

@ -254,7 +254,7 @@ export class ContentChildMetadata extends QueryMetadata {
* shown: boolean;
*
* constructor(private @Query(Item) items:QueryList<Item>) {
* items.onChange(() => console.log(items.length));
* items.changes.subscribe(() => console.log(items.length));
* }
* }
* ```