docs(directives): add a deprecation comment for properties, events
Closes #7059
This commit is contained in:
parent
60a2ba87d4
commit
e82b700ad0
@ -468,6 +468,11 @@ export class DirectiveMetadata extends InjectableMetadata {
|
|||||||
return isPresent(this._properties) && this._properties.length > 0 ? this._properties :
|
return isPresent(this._properties) && this._properties.length > 0 ? this._properties :
|
||||||
this._inputs;
|
this._inputs;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Use `inputs` instead
|
||||||
|
*
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
get properties(): string[] { return this.inputs; }
|
get properties(): string[] { return this.inputs; }
|
||||||
private _inputs: string[];
|
private _inputs: string[];
|
||||||
private _properties: string[];
|
private _properties: string[];
|
||||||
@ -520,6 +525,11 @@ export class DirectiveMetadata extends InjectableMetadata {
|
|||||||
get outputs(): string[] {
|
get outputs(): string[] {
|
||||||
return isPresent(this._events) && this._events.length > 0 ? this._events : this._outputs;
|
return isPresent(this._events) && this._events.length > 0 ? this._events : this._outputs;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Use `outputs` instead
|
||||||
|
*
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
get events(): string[] { return this.outputs; }
|
get events(): string[] { return this.outputs; }
|
||||||
private _outputs: string[];
|
private _outputs: string[];
|
||||||
private _events: string[];
|
private _events: string[];
|
||||||
@ -732,8 +742,8 @@ export class DirectiveMetadata extends InjectableMetadata {
|
|||||||
selector?: string,
|
selector?: string,
|
||||||
inputs?: string[],
|
inputs?: string[],
|
||||||
outputs?: string[],
|
outputs?: string[],
|
||||||
properties?: string[],
|
/** @deprecated */ properties?: string[],
|
||||||
events?: string[],
|
/** @deprecated */ events?: string[],
|
||||||
host?: {[key: string]: string},
|
host?: {[key: string]: string},
|
||||||
providers?: any[],
|
providers?: any[],
|
||||||
exportAs?: string,
|
exportAs?: string,
|
||||||
@ -875,8 +885,8 @@ export class ComponentMetadata extends DirectiveMetadata {
|
|||||||
selector?: string,
|
selector?: string,
|
||||||
inputs?: string[],
|
inputs?: string[],
|
||||||
outputs?: string[],
|
outputs?: string[],
|
||||||
properties?: string[],
|
/** @deprecated */ properties?: string[],
|
||||||
events?: string[],
|
/** @deprecated */ events?: string[],
|
||||||
host?: {[key: string]: string},
|
host?: {[key: string]: string},
|
||||||
providers?: any[],
|
providers?: any[],
|
||||||
exportAs?: string,
|
exportAs?: string,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user