Skip to content

Commit

Permalink
docs(directives): add a deprecation comment for properties, events
Browse files Browse the repository at this point in the history
Closes #7059
  • Loading branch information
rise2semi authored and mhevery committed May 25, 2016
1 parent 60a2ba8 commit e82b700
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions modules/@angular/core/src/metadata/directives.ts
Expand Up @@ -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[];
Expand Down Expand Up @@ -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[];
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e82b700

Please sign in to comment.