From 4bfe49cd422ac3bc72f73a5e8f89bcc474472dfe Mon Sep 17 00:00:00 2001 From: Shuhei Kagawa Date: Fri, 1 Jan 2016 17:15:41 +0900 Subject: [PATCH] docs(core): update QueryList's onChange to changes.subscribe --- modules/angular2/src/core/metadata.ts | 2 +- modules/angular2/src/core/metadata/di.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/angular2/src/core/metadata.ts b/modules/angular2/src/core/metadata.ts index 2c0a40a544..a5d203272e 100644 --- a/modules/angular2/src/core/metadata.ts +++ b/modules/angular2/src/core/metadata.ts @@ -1166,7 +1166,7 @@ export var ViewChild: ViewChildFactory = makePropDecorator(ViewChildMetadata); * shown: boolean; * * constructor(private @Query(Item) items:QueryList) { - * items.onChange(() => console.log(items.length)); + * items.changes.subscribe(() => console.log(items.length)); * } * } * ``` diff --git a/modules/angular2/src/core/metadata/di.ts b/modules/angular2/src/core/metadata/di.ts index 3cb97653af..88d1ea08b8 100644 --- a/modules/angular2/src/core/metadata/di.ts +++ b/modules/angular2/src/core/metadata/di.ts @@ -254,7 +254,7 @@ export class ContentChildMetadata extends QueryMetadata { * shown: boolean; * * constructor(private @Query(Item) items:QueryList) { - * items.onChange(() => console.log(items.length)); + * items.changes.subscribe(() => console.log(items.length)); * } * } * ```