X Tutup
Skip to content

Commit c5f490b

Browse files
committed
chore(forms): deprecate the old Query API
The old API has been replaced with ContentChildren and ViewChildren. Closes angular#4922
1 parent 2e059dc commit c5f490b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/angular2/src/core/metadata.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ class Attribute extends AttributeMetadata {
129129
/**
130130
* See: [QueryMetadata] for docs.
131131
*/
132+
@Deprecated("Use ContentChildren/ContentChild instead")
132133
class Query extends QueryMetadata {
133134
const Query(dynamic /*Type | string*/ selector, {bool descendants: false})
134135
: super(selector, descendants: descendants);
@@ -153,6 +154,7 @@ class ContentChild extends ContentChildMetadata {
153154
/**
154155
* See: [ViewQueryMetadata] for docs.
155156
*/
157+
@Deprecated("Use ViewChildren/ViewChild instead")
156158
class ViewQuery extends ViewQueryMetadata {
157159
const ViewQuery(dynamic /*Type | string*/ selector)
158160
: super(selector, descendants: true);

0 commit comments

Comments
 (0)
X Tutup