docs(directives): add a deprecation comment for properties, events

Closes #7059
This commit is contained in:
Borys Semerenko 2016-02-14 01:31:50 +02:00 committed by Misko Hevery
parent 60a2ba87d4
commit e82b700ad0
1 changed files with 14 additions and 4 deletions

View File

@ -468,6 +468,11 @@ export class DirectiveMetadata extends InjectableMetadata {
return isPresent(this._properties) && this._properties.length > 0 ? this._properties :
this._inputs;
}
/**
* Use `inputs` instead
*
* @deprecated
*/
get properties(): string[] { return this.inputs; }
private _inputs: string[];
private _properties: string[];
@ -520,6 +525,11 @@ export class DirectiveMetadata extends InjectableMetadata {
get outputs(): string[] {
return isPresent(this._events) && this._events.length > 0 ? this._events : this._outputs;
}
/**
* Use `outputs` instead
*
* @deprecated
*/
get events(): string[] { return this.outputs; }
private _outputs: string[];
private _events: string[];
@ -732,8 +742,8 @@ export class DirectiveMetadata extends InjectableMetadata {
selector?: string,
inputs?: string[],
outputs?: string[],
properties?: string[],
events?: string[],
/** @deprecated */ properties?: string[],
/** @deprecated */ events?: string[],
host?: {[key: string]: string},
providers?: any[],
exportAs?: string,
@ -875,8 +885,8 @@ export class ComponentMetadata extends DirectiveMetadata {
selector?: string,
inputs?: string[],
outputs?: string[],
properties?: string[],
events?: string[],
/** @deprecated */ properties?: string[],
/** @deprecated */ events?: string[],
host?: {[key: string]: string},
providers?: any[],
exportAs?: string,