I have a few custom directives which are basically designed for . And I have a custom component
There
In the constructor of the directive you can do some like.
constructor( @Attribute('attributeName') private attributeUno:String, private element:ElementRef ) { console.log(this.attributeUno); }