I want to pass model value from my HTML template to my custom directive:
@Directive({
selector: '[eventlistener]'
})
export class EventListener {
@Input() value:string = 'Not Defined';
@HostListener('click')
onClick() {
console.log('You clicked me',value);
}
}
and in my HTML template :
Currently, it's displaying model.EmailAddress, I want to get the evaluated value(which I get in the component). Is there any way to get it?
