From c5f490ba43e6a1a4f41f36e70db17320c04bda01 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Mon, 26 Oct 2015 15:45:44 -0700 Subject: [PATCH] chore(forms): deprecate the old Query API The old API has been replaced with ContentChildren and ViewChildren. Closes #4922 --- modules/angular2/src/core/metadata.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/angular2/src/core/metadata.dart b/modules/angular2/src/core/metadata.dart index b0f4f4608f..d2710f29e7 100644 --- a/modules/angular2/src/core/metadata.dart +++ b/modules/angular2/src/core/metadata.dart @@ -129,6 +129,7 @@ class Attribute extends AttributeMetadata { /** * See: [QueryMetadata] for docs. */ +@Deprecated("Use ContentChildren/ContentChild instead") class Query extends QueryMetadata { const Query(dynamic /*Type | string*/ selector, {bool descendants: false}) : super(selector, descendants: descendants); @@ -153,6 +154,7 @@ class ContentChild extends ContentChildMetadata { /** * See: [ViewQueryMetadata] for docs. */ +@Deprecated("Use ViewChildren/ViewChild instead") class ViewQuery extends ViewQueryMetadata { const ViewQuery(dynamic /*Type | string*/ selector) : super(selector, descendants: true);