خرید بک لینک

Vote count: 0

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?

asked 56 secs ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 27 فروردين 1396 ساعت: 10:41

صفحه بندی