fix(ivy): host bindings and listeners not being inherited from undecorated classes (#30158)
Fixes `HostBinding` and `HostListener` declarations not being inherited from base classes that don't have an Angular decorator. This PR resolves FW-1275. PR Close #30158
This commit is contained in:

committed by
Andrew Kushnir

parent
164d160b22
commit
68ff2cc323
@ -62,24 +62,7 @@ export interface R3DirectiveMetadata {
|
||||
* Mappings indicating how the directive interacts with its host element (host bindings,
|
||||
* listeners, etc).
|
||||
*/
|
||||
host: {
|
||||
/**
|
||||
* A mapping of attribute binding keys to `o.Expression`s.
|
||||
*/
|
||||
attributes: {[key: string]: o.Expression};
|
||||
|
||||
/**
|
||||
* A mapping of event binding keys to unparsed expressions.
|
||||
*/
|
||||
listeners: {[key: string]: string};
|
||||
|
||||
/**
|
||||
* A mapping of property binding keys to unparsed expressions.
|
||||
*/
|
||||
properties: {[key: string]: string};
|
||||
|
||||
specialAttributes: {styleAttr?: string; classAttr?: string;}
|
||||
};
|
||||
host: R3HostMetadata;
|
||||
|
||||
/**
|
||||
* Information about usage of specific lifecycle events which require special treatment in the
|
||||
@ -265,3 +248,26 @@ export interface R3ComponentDef {
|
||||
type: o.Type;
|
||||
statements: o.Statement[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Mappings indicating how the class interacts with its
|
||||
* host element (host bindings, listeners, etc).
|
||||
*/
|
||||
export interface R3HostMetadata {
|
||||
/**
|
||||
* A mapping of attribute binding keys to `o.Expression`s.
|
||||
*/
|
||||
attributes: {[key: string]: o.Expression};
|
||||
|
||||
/**
|
||||
* A mapping of event binding keys to unparsed expressions.
|
||||
*/
|
||||
listeners: {[key: string]: string};
|
||||
|
||||
/**
|
||||
* A mapping of property binding keys to unparsed expressions.
|
||||
*/
|
||||
properties: {[key: string]: string};
|
||||
|
||||
specialAttributes: {styleAttr?: string; classAttr?: string;};
|
||||
}
|
||||
|
Reference in New Issue
Block a user