@@ -1103,6 +1103,7 @@ function instantiateAllDirectives(
11031103
11041104 attachPatchData ( native , lView ) ;
11051105
1106+ const initialInputs = tNode . initialInputs ;
11061107 for ( let i = start ; i < end ; i ++ ) {
11071108 const def = tView . data [ i ] as DirectiveDef < any > ;
11081109 const isComponent = isComponentDef ( def ) ;
@@ -1115,8 +1116,8 @@ function instantiateAllDirectives(
11151116 const directive = getNodeInjectable ( tView . data , lView , i , tNode ) ;
11161117 attachPatchData ( directive , lView ) ;
11171118
1118- if ( tNode . initialInputs !== null ) {
1119- setInputsFromAttrs ( lView , i - start , directive , def , tNode ) ;
1119+ if ( initialInputs !== null ) {
1120+ setInputsFromAttrs ( lView , i - start , directive , def , tNode , initialInputs ! ) ;
11201121 }
11211122
11221123 if ( isComponent ) {
@@ -1348,8 +1349,8 @@ export function elementAttributeInternal(
13481349 * @param tNode The static data for this node
13491350 */
13501351function setInputsFromAttrs < T > (
1351- lView : LView , directiveIndex : number , instance : T , def : DirectiveDef < T > , tNode : TNode ) : void {
1352- const initialInputData = tNode . initialInputs as InitialInputData ;
1352+ lView : LView , directiveIndex : number , instance : T , def : DirectiveDef < T > , tNode : TNode ,
1353+ initialInputData : InitialInputData ) : void {
13531354 const initialInputs : InitialInputs | null = initialInputData ! [ directiveIndex ] ;
13541355 if ( initialInputs !== null ) {
13551356 const setInput = def . setInput ;
0 commit comments