refactor(ivy): use generated consts value to set binding index (#25533)
PR Close #25533
This commit is contained in:

committed by
Jason Aden

parent
4708cb91ef
commit
f2aa9c6a7f
@ -53,6 +53,15 @@ export function defineComponent<T>(componentDefinition: {
|
||||
*/
|
||||
factory: () => T;
|
||||
|
||||
/**
|
||||
* The number of nodes, local refs, and pipes in this component template.
|
||||
*
|
||||
* Used to calculate the length of the component's LViewData array, so we
|
||||
* can pre-fill the array and set the binding start index.
|
||||
*/
|
||||
// TODO(kara): remove queries from this count
|
||||
consts: number;
|
||||
|
||||
/**
|
||||
* Static attributes to set on host element.
|
||||
*
|
||||
@ -245,6 +254,7 @@ export function defineComponent<T>(componentDefinition: {
|
||||
const def: ComponentDefInternal<any> = {
|
||||
type: type,
|
||||
diPublic: null,
|
||||
consts: componentDefinition.consts,
|
||||
factory: componentDefinition.factory,
|
||||
template: componentDefinition.template || null !,
|
||||
hostBindings: componentDefinition.hostBindings || null,
|
||||
|
Reference in New Issue
Block a user