Detected in alpha 42..48. @vsavkin thinks it might be fixed coincidentally in a.49.
Recording the report here so we can track and confirm.
Report
The following works
<div my-click (my-click)="clicks=$event">click me</div>
but this doesn't (the directive is never instantiated)
<div (my-click)="clicks=$event">click me</div>
for directive:
@Directive({selector:'[my-click]'})
export class MyClickDirective {
@Output() myClick = new EventEmitter<string>();
constructor(el: ElementRef){
el.nativeElement
.addEventListener('click', (event:Event) => {
this.myClick.emit('Click!');
});
}
}
Detected in alpha 42..48. @vsavkin thinks it might be fixed coincidentally in a.49.
Recording the report here so we can track and confirm.
Report
The following works
but this doesn't (the directive is never instantiated)
for directive: