Please sign in to comment.
fix(ivy): avoid unnecessary i18n instructions generation for <ng-temp…
…late> with structural directives (#32623) If an <ng-template> contains a structural directive (for example *ngIf), Ngtsc generates extra template function with 1 template instruction call. When <ng-template> tag also contains i18n attribute on it, we generate i18nStart and i18nEnd instructions around it, which is unnecessary and breaking runtime. This commit adds a logic to make sure we do not generate i18n instructions in case only `template` is present. PR Close #32623
- Loading branch information...
Showing with 77 additions and 2 deletions.