chore(forms): deprecate the old Query API

The old API has been replaced with ContentChildren and ViewChildren.

Closes #4922
This commit is contained in:
vsavkin 2015-10-26 15:45:44 -07:00 committed by Victor Savkin
parent 2e059dc916
commit c5f490ba43
1 changed files with 2 additions and 0 deletions

View File

@ -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);