feat(core): @Attribute annotation

Closes #1091
Fixes #622
This commit is contained in:
Marc Laval
2015-03-25 09:42:19 +01:00
parent 3ce0f1146f
commit b1dc6239ef
9 changed files with 114 additions and 6 deletions

View File

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