diff --git a/packages/core/src/render3/i18n.ts b/packages/core/src/render3/i18n.ts index b13cac08fc087..09c8a5f745a8f 100644 --- a/packages/core/src/render3/i18n.ts +++ b/packages/core/src/render3/i18n.ts @@ -695,7 +695,7 @@ function i18nEndFirstPass(lView: LView, tView: TView) { // Divide by 2 to get the number of local refs, // since they are stored as an array that also includes directive indexes, // i.e. ["localRef", directiveIndex, ...] - index += tNode.localNames.length / 2; + index += tNode.localNames.length >> 1; } index++; }