feat(core): add support for @HostBinding and @HostListener
Example: @Directive({selector: 'my-directive'}) class MyDirective { @HostBinding("attr.my-attr") myAttr: string; @HostListener("click", ["$event.target"]) onClick(target) { this.target = target; } } Closes #3996
This commit is contained in:
@ -40,7 +40,13 @@ export {
|
||||
PropertyMetadata,
|
||||
Event,
|
||||
EventFactory,
|
||||
EventMetadata
|
||||
EventMetadata,
|
||||
HostBinding,
|
||||
HostBindingFactory,
|
||||
HostBindingMetadata,
|
||||
HostListener,
|
||||
HostListenerFactory,
|
||||
HostListenerMetadata
|
||||
} from './src/core/metadata';
|
||||
|
||||
export {
|
||||
|
Reference in New Issue
Block a user