Closed eesdil closed 8 years ago
Is it possible to add extra attributes to @Directive? As it doesnt seem to add the @Input() decorator... It is working fine with @Component.
You'd have to access other attrs with $attrs, which you can inject into the constructor
@Directive() @Inject('$attrs') class MyDirective { constructor($attrs) { console.log($attrs.someOtherAttr) } }
Is it possible to add extra attributes to @Directive? As it doesnt seem to add the @Input() decorator... It is working fine with @Component.