refactor(ivy): update ɵɵtextBinding to not take index (#30792)

- Splits core functionality off into a shared internal function
- ɵɵtextBinding will no longer require an index
- Alters the compiler to stop generating an index argument for the instruction
- Updates tests
- Updates some usage of ɵɵtextBinding in i18n to use the helper function instead

PR Close #30792
This commit is contained in:
Ben Lesh
2019-05-31 14:41:07 -07:00
committed by Andrew Kushnir
parent b5aa0473fc
commit 16aa6ceff8
21 changed files with 175 additions and 93 deletions

View File

@ -92,7 +92,8 @@ GreetComponent.ngComponentDef = i0.ɵɵdefineComponent({
i0.ɵɵelementEnd();
}
if (rf & RenderFlags.Update) {
i0.ɵɵtextBinding(1, i0.ɵɵinterpolation1('Hello ', ctx.name, '!'));
i0.ɵɵselect(1);
i0.ɵɵtextInterpolate1('Hello ', ctx.name, '!');
}
}
});