12
modules/angular2/src/core/annotations/di.js
vendored
12
modules/angular2/src/core/annotations/di.js
vendored
@ -26,3 +26,15 @@ export class PropertySetter extends DependencyAnnotation {
|
||||
this.propName = propName;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The directive can inject the value of an attribute of the host element
|
||||
*/
|
||||
export class Attribute extends DependencyAnnotation {
|
||||
attributeName: string;
|
||||
@CONST()
|
||||
constructor(attributeName) {
|
||||
super();
|
||||
this.attributeName = attributeName;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user