');
});
it('should produce an error when a non-NgModule class is exported', () => {
diff --git a/packages/compiler-cli/test/ngtsc/template_mapping_spec.ts b/packages/compiler-cli/test/ngtsc/template_mapping_spec.ts
index ed1d6cee85..1fb37030bf 100644
--- a/packages/compiler-cli/test/ngtsc/template_mapping_spec.ts
+++ b/packages/compiler-cli/test/ngtsc/template_mapping_spec.ts
@@ -23,17 +23,17 @@ describe('template source-mapping', () => {
it('should map simple element with content', () => {
const mappings = compileAndMap('Heading 1 ');
expect(mappings).toContain(
- {source: '', generated: 'i0.ɵɵelementStart(0, "h1")', sourceUrl: '../test.ts'});
+ {source: '', generated: 'i0.ΔelementStart(0, "h1")', sourceUrl: '../test.ts'});
expect(mappings).toContain(
- {source: 'Heading 1', generated: 'i0.ɵɵtext(1, "Heading 1")', sourceUrl: '../test.ts'});
+ {source: 'Heading 1', generated: 'i0.Δtext(1, "Heading 1")', sourceUrl: '../test.ts'});
expect(mappings).toContain(
- {source: ' ', generated: 'i0.ɵɵelementEnd()', sourceUrl: '../test.ts'});
+ {source: ' ', generated: 'i0.ΔelementEnd()', sourceUrl: '../test.ts'});
});
it('should map void element', () => {
const mappings = compileAndMap(' ');
expect(mappings).toContain(
- {source: ' ', generated: 'i0.ɵɵelement(0, "hr")', sourceUrl: '../test.ts'});
+ {source: ' ', generated: 'i0.Δelement(0, "hr")', sourceUrl: '../test.ts'});
});
});
@@ -41,40 +41,40 @@ describe('template source-mapping', () => {
it('should map a mix of interpolated and static content', () => {
const mappings = compileAndMap('Hello {{ name }} ');
expect(mappings).toContain(
- {source: '', generated: 'i0.ɵɵelementStart(0, "h3")', sourceUrl: '../test.ts'});
+ {source: '', generated: 'i0.ΔelementStart(0, "h3")', sourceUrl: '../test.ts'});
expect(mappings).toContain({
source: 'Hello {{ name }}',
- generated: 'i0.ɵɵtextBinding(1, i0.ɵɵinterpolation1("Hello ", ctx.name, ""))',
+ generated: 'i0.ΔtextBinding(1, i0.Δinterpolation1("Hello ", ctx.name, ""))',
sourceUrl: '../test.ts'
});
expect(mappings).toContain(
- {source: ' ', generated: 'i0.ɵɵelementEnd()', sourceUrl: '../test.ts'});
+ {source: ' ', generated: 'i0.ΔelementEnd()', sourceUrl: '../test.ts'});
});
it('should map a complex interpolated expression', () => {
const mappings = compileAndMap('{{ greeting + " " + name }} ');
expect(mappings).toContain(
- {source: '', generated: 'i0.ɵɵelementStart(0, "h2")', sourceUrl: '../test.ts'});
+ {source: '', generated: 'i0.ΔelementStart(0, "h2")', sourceUrl: '../test.ts'});
expect(mappings).toContain({
source: '{{ greeting + " " + name }}',
generated:
- 'i0.ɵɵtextBinding(1, i0.ɵɵinterpolation1("", ((ctx.greeting + " ") + ctx.name), ""))',
+ 'i0.ΔtextBinding(1, i0.Δinterpolation1("", ((ctx.greeting + " ") + ctx.name), ""))',
sourceUrl: '../test.ts'
});
expect(mappings).toContain(
- {source: ' ', generated: 'i0.ɵɵelementEnd()', sourceUrl: '../test.ts'});
+ {source: ' ', generated: 'i0.ΔelementEnd()', sourceUrl: '../test.ts'});
});
it('should map interpolated properties', () => {
const mappings = compileAndMap('
');
expect(mappings).toContain({
source: '
',
- generated: 'i0.ɵɵelement(0, "div", _c0)',
+ generated: 'i0.Δelement(0, "div", _c0)',
sourceUrl: '../test.ts'
});
expect(mappings).toContain({
source: 'id="{{name}}"',
- generated: 'i0.ɵɵpropertyInterpolate("id", ctx.name)',
+ generated: 'i0.ΔpropertyInterpolate("id", ctx.name)',
sourceUrl: '../test.ts'
});
});
@@ -82,15 +82,15 @@ describe('template source-mapping', () => {
it('should map interpolation with pipe', () => {
const mappings = compileAndMap('{{200.3 | percent : 2 }}
');
expect(mappings).toContain(
- {source: '', generated: 'i0.ɵɵelementStart(0, "div")', sourceUrl: '../test.ts'});
+ {source: '
', generated: 'i0.ΔelementStart(0, "div")', sourceUrl: '../test.ts'});
expect(mappings).toContain({
source: '{{200.3 | percent : 2 }}',
generated:
- 'i0.ɵɵtextBinding(1, i0.ɵɵinterpolation1("", i0.ɵɵpipeBind2(2, 1, 200.3, 2), ""))',
+ 'i0.ΔtextBinding(1, i0.Δinterpolation1("", i0.ΔpipeBind2(2, 1, 200.3, 2), ""))',
sourceUrl: '../test.ts'
});
expect(mappings).toContain(
- {source: '
', generated: 'i0.ɵɵelementEnd()', sourceUrl: '../test.ts'});
+ {source: '
', generated: 'i0.ΔelementEnd()', sourceUrl: '../test.ts'});
});
});
@@ -99,12 +99,12 @@ describe('template source-mapping', () => {
const mappings = compileAndMap('
');
expect(mappings).toContain({
source: '
',
- generated: 'i0.ɵɵelement(0, "div", _c0)',
+ generated: 'i0.Δelement(0, "div", _c0)',
sourceUrl: '../test.ts'
});
expect(mappings).toContain({
source: '[attr]="name"',
- generated: 'i0.ɵɵproperty("attr", ctx.name)',
+ generated: 'i0.Δproperty("attr", ctx.name)',
sourceUrl: '../test.ts'
});
});
@@ -114,12 +114,12 @@ describe('template source-mapping', () => {
expect(mappings).toContain({
source: '
',
- generated: 'i0.ɵɵelement(0, "div", _c0)',
+ generated: 'i0.Δelement(0, "div", _c0)',
sourceUrl: '../test.ts'
});
expect(mappings).toContain({
source: '[attr]="greeting + name"',
- generated: 'i0.ɵɵproperty("attr", (ctx.greeting + ctx.name))',
+ generated: 'i0.Δproperty("attr", (ctx.greeting + ctx.name))',
sourceUrl: '../test.ts'
});
});
@@ -128,12 +128,12 @@ describe('template source-mapping', () => {
const mappings = compileAndMap('
');
expect(mappings).toContain({
source: '
',
- generated: 'i0.ɵɵelement(0, "div", _c0)',
+ generated: 'i0.Δelement(0, "div", _c0)',
sourceUrl: '../test.ts'
});
expect(mappings).toContain({
source: 'bind-attr="name"',
- generated: 'i0.ɵɵproperty("attr", ctx.name)',
+ generated: 'i0.Δproperty("attr", ctx.name)',
sourceUrl: '../test.ts'
});
});
@@ -142,15 +142,15 @@ describe('template source-mapping', () => {
const mappings = compileAndMap('Do it ');
expect(mappings).toContain({
source: '',
- generated: 'i0.ɵɵelementStart(0, "button", _c0)',
+ generated: 'i0.ΔelementStart(0, "button", _c0)',
sourceUrl: '../test.ts'
});
expect(mappings).toContain(
- {source: 'Do it', generated: 'i0.ɵɵtext(1, "Do it")', sourceUrl: '../test.ts'});
+ {source: 'Do it', generated: 'i0.Δtext(1, "Do it")', sourceUrl: '../test.ts'});
expect(mappings).toContain(
{source: 'doSomething()', generated: 'ctx.doSomething()', sourceUrl: '../test.ts'});
expect(mappings).toContain(
- {source: ' ', generated: 'i0.ɵɵelementEnd()', sourceUrl: '../test.ts'});
+ {source: '', generated: 'i0.ΔelementEnd()', sourceUrl: '../test.ts'});
});
it('should map a complex output binding expression', () => {
@@ -158,11 +158,11 @@ describe('template source-mapping', () => {
compileAndMap(`Add Item `);
expect(mappings).toContain({
source: ``,
- generated: 'i0.ɵɵelementStart(0, "button", _c0)',
+ generated: 'i0.ΔelementStart(0, "button", _c0)',
sourceUrl: '../test.ts'
});
expect(mappings).toContain(
- {source: 'Add Item', generated: 'i0.ɵɵtext(1, "Add Item")', sourceUrl: '../test.ts'});
+ {source: 'Add Item', generated: 'i0.Δtext(1, "Add Item")', sourceUrl: '../test.ts'});
expect(mappings).toContain(
{source: 'items.push(', generated: 'ctx.items.push((', sourceUrl: '../test.ts'});
expect(mappings).toContain(
@@ -173,41 +173,41 @@ describe('template source-mapping', () => {
sourceUrl: '../test.ts'
});
expect(mappings).toContain(
- {source: ' ', generated: 'i0.ɵɵelementEnd()', sourceUrl: '../test.ts'});
+ {source: '', generated: 'i0.ΔelementEnd()', sourceUrl: '../test.ts'});
});
it('should map a longhand output binding expression', () => {
const mappings = compileAndMap('Do it ');
expect(mappings).toContain({
source: '',
- generated: 'i0.ɵɵelementStart(0, "button", _c0)',
+ generated: 'i0.ΔelementStart(0, "button", _c0)',
sourceUrl: '../test.ts'
});
expect(mappings).toContain(
- {source: 'Do it', generated: 'i0.ɵɵtext(1, "Do it")', sourceUrl: '../test.ts'});
+ {source: 'Do it', generated: 'i0.Δtext(1, "Do it")', sourceUrl: '../test.ts'});
expect(mappings).toContain(
{source: 'doSomething()', generated: 'ctx.doSomething()', sourceUrl: '../test.ts'});
expect(mappings).toContain(
- {source: ' ', generated: 'i0.ɵɵelementEnd()', sourceUrl: '../test.ts'});
+ {source: '', generated: 'i0.ΔelementEnd()', sourceUrl: '../test.ts'});
});
it('should map a two-way binding expression', () => {
const mappings = compileAndMap('Name: ');
expect(mappings).toContain({
source: ' ',
- generated: 'i0.ɵɵelementStart(1, "input", _c0)',
+ generated: 'i0.ΔelementStart(1, "input", _c0)',
sourceUrl: '../test.ts'
});
// TODO: improve mappings here
expect(mappings).toContain({
source: '[(ngModel)]="name"',
generated:
- 'i0.ɵɵlistener("ngModelChange", function TestCmp_Template_input_ngModelChange_1_listener($event) { return ctx.name = $event; })',
+ 'i0.Δlistener("ngModelChange", function TestCmp_Template_input_ngModelChange_1_listener($event) { return ctx.name = $event; })',
sourceUrl: '../test.ts'
});
expect(mappings).toContain({
source: ' ',
- generated: 'i0.ɵɵelementEnd()',
+ generated: 'i0.ΔelementEnd()',
sourceUrl: '../test.ts'
});
});
@@ -216,19 +216,19 @@ describe('template source-mapping', () => {
const mappings = compileAndMap('Name: ');
expect(mappings).toContain({
source: ' ',
- generated: 'i0.ɵɵelementStart(1, "input", _c0)',
+ generated: 'i0.ΔelementStart(1, "input", _c0)',
sourceUrl: '../test.ts'
});
// TODO: improve mappings here
expect(mappings).toContain({
source: 'bindon-ngModel="name"',
generated:
- 'i0.ɵɵlistener("ngModelChange", function TestCmp_Template_input_ngModelChange_1_listener($event) { return ctx.name = $event; })',
+ 'i0.Δlistener("ngModelChange", function TestCmp_Template_input_ngModelChange_1_listener($event) { return ctx.name = $event; })',
sourceUrl: '../test.ts'
});
expect(mappings).toContain({
source: ' ',
- generated: 'i0.ɵɵelementEnd()',
+ generated: 'i0.ΔelementEnd()',
sourceUrl: '../test.ts'
});
});
@@ -237,17 +237,17 @@ describe('template source-mapping', () => {
const mappings = compileAndMap('Message
');
expect(mappings).toContain({
source: '',
- generated: 'i0.ɵɵelementStart(0, "div")',
+ generated: 'i0.ΔelementStart(0, "div")',
sourceUrl: '../test.ts'
});
// TODO: Add better mappings for binding
expect(mappings).toContain(
- {source: 'Message', generated: 'i0.ɵɵtext(1, "Message")', sourceUrl: '../test.ts'});
+ {source: 'Message', generated: 'i0.Δtext(1, "Message")', sourceUrl: '../test.ts'});
expect(mappings).toContain(
- {source: '
', generated: 'i0.ɵɵelementEnd()', sourceUrl: '../test.ts'});
+ {source: '', generated: 'i0.ΔelementEnd()', sourceUrl: '../test.ts'});
});
});
@@ -257,20 +257,20 @@ describe('template source-mapping', () => {
expect(mappings).toContain({
source: '',
- generated: 'i0.ɵɵelementStart(0, "div")',
+ generated: 'i0.ΔelementStart(0, "div")',
sourceUrl: '../test.ts'
});
// TODO - map the bindings better
expect(mappings).toContain(
- {source: '
', generated: 'i0.ɵɵelementEnd()', sourceUrl: '../test.ts'});
+ {source: '', generated: 'i0.ΔelementEnd()', sourceUrl: '../test.ts'});
// TODO: the `ctx_r...` appears to be dependent upon previous tests!!!
// expect(mappings).toContain({
// source: '{{ name }}',
- // generated: 'i0.ɵɵtextBinding(1, i0.ɵɵinterpolation1("", ctx_r0.name, ""))',
+ // generated: 'i0.ΔtextBinding(1, i0.Δinterpolation1("", ctx_r0.name, ""))',
// sourceUrl: '../test.ts'
// });
});
@@ -283,18 +283,18 @@ describe('template source-mapping', () => {
``);
expect(mappings).toContain(
- {source: '', generated: 'i0.ɵɵelementStart(0, "div")', sourceUrl: '../test.ts'});
+ {source: '
', generated: 'i0.ΔelementStart(0, "div")', sourceUrl: '../test.ts'});
// TODO - map the bindings better
expect(mappings).toContain(
- {source: '
', generated: 'i0.ɵɵelementEnd()', sourceUrl: '../test.ts'});
+ {source: '
', generated: 'i0.ΔelementEnd()', sourceUrl: '../test.ts'});
// TODO: the `ctx_r...` appears to be dependent upon previous tests!!!
// expect(mappings).toContain({
// source: '{{ name }}',
- // generated: 'i0.ɵɵtextBinding(1, i0.ɵɵinterpolation1("", ctx_r0.name, ""))',
+ // generated: 'i0.ΔtextBinding(1, i0.Δinterpolation1("", ctx_r0.name, ""))',
// sourceUrl: '../test.ts'
// });
});
@@ -305,14 +305,14 @@ describe('template source-mapping', () => {
expect(mappings).toContain({
source: '',
- generated: 'i0.ɵɵelementStart(0, "div")',
+ generated: 'i0.ΔelementStart(0, "div")',
sourceUrl: '../test.ts'
});
// TODO - map the bindings better
expect(mappings).toContain(
- {source: '
', generated: 'i0.ɵɵelementEnd()', sourceUrl: '../test.ts'});
+ {source: '', generated: 'i0.ΔelementEnd()', sourceUrl: '../test.ts'});
});
@@ -331,20 +331,20 @@ describe('template source-mapping', () => {
`
`);
expect(mappings).toContain(
- {source: '', generated: 'i0.ɵɵelementStart(0, "h3")', sourceUrl: '../test.ts'});
+ {source: '', generated: 'i0.ΔelementStart(0, "h3")', sourceUrl: '../test.ts'});
expect(mappings).toContain({
source: '',
- generated: 'i0.ɵɵprojection(1, 1)',
+ generated: 'i0.Δprojection(1, 1)',
sourceUrl: '../test.ts'
});
expect(mappings).toContain(
- {source: ' ', generated: 'i0.ɵɵelementEnd()', sourceUrl: '../test.ts'});
+ {source: ' ', generated: 'i0.ΔelementEnd()', sourceUrl: '../test.ts'});
expect(mappings).toContain(
- {source: '', generated: 'i0.ɵɵelementStart(2, "div")', sourceUrl: '../test.ts'});
+ {source: '
', generated: 'i0.ΔelementStart(2, "div")', sourceUrl: '../test.ts'});
expect(mappings).toContain(
- {source: '', generated: 'i0.ɵɵprojection(3)', sourceUrl: '../test.ts'});
+ {source: '', generated: 'i0.Δprojection(3)', sourceUrl: '../test.ts'});
expect(mappings).toContain(
- {source: '
', generated: 'i0.ɵɵelementEnd()', sourceUrl: '../test.ts'});
+ {source: '
', generated: 'i0.ΔelementEnd()', sourceUrl: '../test.ts'});
});
});
@@ -353,24 +353,24 @@ describe('template source-mapping', () => {
// Creation mode
expect(mappings).toContain(
- {generated: 'i0.ɵɵelementStart(0, "div")', source: '', sourceUrl: '../test.ts'});
+ {generated: 'i0.ΔelementStart(0, "div")', source: '
', sourceUrl: '../test.ts'});
expect(mappings).toContain({
- generated: 'i0.ɵɵtext(1, "this is a test")',
+ generated: 'i0.Δtext(1, "this is a test")',
source: 'this is a test',
sourceUrl: '../test.ts'
});
expect(mappings).toContain(
- {generated: 'i0.ɵɵelementEnd()', source: '
', sourceUrl: '../test.ts'});
+ {generated: 'i0.ΔelementEnd()', source: '
', sourceUrl: '../test.ts'});
expect(mappings).toContain(
- {generated: 'i0.ɵɵelementStart(2, "div")', source: '', sourceUrl: '../test.ts'});
+ {generated: 'i0.ΔelementStart(2, "div")', source: '
', sourceUrl: '../test.ts'});
expect(mappings).toContain(
- {generated: 'i0.ɵɵtext(3)', source: '{{ 1 + 2 }}', sourceUrl: '../test.ts'});
+ {generated: 'i0.Δtext(3)', source: '{{ 1 + 2 }}', sourceUrl: '../test.ts'});
expect(mappings).toContain(
- {generated: 'i0.ɵɵelementEnd()', source: '
', sourceUrl: '../test.ts'});
+ {generated: 'i0.ΔelementEnd()', source: '
', sourceUrl: '../test.ts'});
// Update mode
expect(mappings).toContain({
- generated: 'i0.ɵɵtextBinding(3, i0.ɵɵinterpolation1("", (1 + 2), ""))',
+ generated: 'i0.ΔtextBinding(3, i0.Δinterpolation1("", (1 + 2), ""))',
source: '{{ 1 + 2 }}',
sourceUrl: '../test.ts'
});
@@ -381,24 +381,24 @@ describe('template source-mapping', () => {
// Creation mode
expect(mappings).toContain(
- {generated: 'i0.ɵɵelementStart(0, "div")', source: '', sourceUrl: '../test.ts'});
+ {generated: 'i0.ΔelementStart(0, "div")', source: '
', sourceUrl: '../test.ts'});
expect(mappings).toContain({
- generated: 'i0.ɵɵtext(1, "this is a test")',
+ generated: 'i0.Δtext(1, "this is a test")',
source: 'this is a test',
sourceUrl: '../test.ts'
});
expect(mappings).toContain(
- {generated: 'i0.ɵɵelementEnd()', source: '
', sourceUrl: '../test.ts'});
+ {generated: 'i0.ΔelementEnd()', source: '
', sourceUrl: '../test.ts'});
expect(mappings).toContain(
- {generated: 'i0.ɵɵelementStart(2, "div")', source: '', sourceUrl: '../test.ts'});
+ {generated: 'i0.ΔelementStart(2, "div")', source: '
', sourceUrl: '../test.ts'});
expect(mappings).toContain(
- {generated: 'i0.ɵɵtext(3)', source: '{{ 1 + 2 }}', sourceUrl: '../test.ts'});
+ {generated: 'i0.Δtext(3)', source: '{{ 1 + 2 }}', sourceUrl: '../test.ts'});
expect(mappings).toContain(
- {generated: 'i0.ɵɵelementEnd()', source: '
', sourceUrl: '../test.ts'});
+ {generated: 'i0.ΔelementEnd()', source: '
', sourceUrl: '../test.ts'});
// Update mode
expect(mappings).toContain({
- generated: 'i0.ɵɵtextBinding(3, i0.ɵɵinterpolation1("", (1 + 2), ""))',
+ generated: 'i0.ΔtextBinding(3, i0.Δinterpolation1("", (1 + 2), ""))',
source: '{{ 1 + 2 }}',
sourceUrl: '../test.ts'
});
@@ -410,7 +410,7 @@ describe('template source-mapping', () => {
const mappings = compileAndMap('this is a test
');
expect(mappings).toContain({
- generated: 'i0.ɵɵelementStart(0, "div", _c0)',
+ generated: 'i0.ΔelementStart(0, "div", _c0)',
source: '',
sourceUrl: '../test.ts'
});
@@ -429,30 +429,30 @@ describe('template source-mapping', () => {
// Creation mode
expect(mappings).toContain({
- generated: 'i0.ɵɵelementStart(0, "div")',
+ generated: 'i0.ΔelementStart(0, "div")',
source: '
',
sourceUrl: '../dir/test.html'
});
expect(mappings).toContain({
- generated: 'i0.ɵɵtext(1, "this is a test")',
+ generated: 'i0.Δtext(1, "this is a test")',
source: 'this is a test',
sourceUrl: '../dir/test.html'
});
expect(mappings).toContain(
- {generated: 'i0.ɵɵelementEnd()', source: '
', sourceUrl: '../dir/test.html'});
+ {generated: 'i0.ΔelementEnd()', source: '
', sourceUrl: '../dir/test.html'});
expect(mappings).toContain({
- generated: 'i0.ɵɵelementStart(2, "div")',
+ generated: 'i0.ΔelementStart(2, "div")',
source: '',
sourceUrl: '../dir/test.html'
});
expect(mappings).toContain(
- {generated: 'i0.ɵɵtext(3)', source: '{{ 1 + 2 }}', sourceUrl: '../dir/test.html'});
+ {generated: 'i0.Δtext(3)', source: '{{ 1 + 2 }}', sourceUrl: '../dir/test.html'});
expect(mappings).toContain(
- {generated: 'i0.ɵɵelementEnd()', source: '
', sourceUrl: '../dir/test.html'});
+ {generated: 'i0.ΔelementEnd()', source: '', sourceUrl: '../dir/test.html'});
// Update mode
expect(mappings).toContain({
- generated: 'i0.ɵɵtextBinding(3, i0.ɵɵinterpolation1("", (1 + 2), ""))',
+ generated: 'i0.ΔtextBinding(3, i0.Δinterpolation1("", (1 + 2), ""))',
source: '{{ 1 + 2 }}',
sourceUrl: '../dir/test.html'
});
@@ -464,39 +464,39 @@ describe('template source-mapping', () => {
// Creation mode
expect(mappings).toContain({
- generated: 'i0.ɵɵelementStart(0, "div")',
+ generated: 'i0.ΔelementStart(0, "div")',
source: '',
sourceUrl: '../extraRootDir/test.html'
});
expect(mappings).toContain({
- generated: 'i0.ɵɵtext(1, "this is a test")',
+ generated: 'i0.Δtext(1, "this is a test")',
source: 'this is a test',
sourceUrl: '../extraRootDir/test.html'
});
expect(mappings).toContain({
- generated: 'i0.ɵɵelementEnd()',
+ generated: 'i0.ΔelementEnd()',
source: '
',
sourceUrl: '../extraRootDir/test.html'
});
expect(mappings).toContain({
- generated: 'i0.ɵɵelementStart(2, "div")',
+ generated: 'i0.ΔelementStart(2, "div")',
source: '',
sourceUrl: '../extraRootDir/test.html'
});
expect(mappings).toContain({
- generated: 'i0.ɵɵtext(3)',
+ generated: 'i0.Δtext(3)',
source: '{{ 1 + 2 }}',
sourceUrl: '../extraRootDir/test.html'
});
expect(mappings).toContain({
- generated: 'i0.ɵɵelementEnd()',
+ generated: 'i0.ΔelementEnd()',
source: '
',
sourceUrl: '../extraRootDir/test.html'
});
// Update mode
expect(mappings).toContain({
- generated: 'i0.ɵɵtextBinding(3, i0.ɵɵinterpolation1("", (1 + 2), ""))',
+ generated: 'i0.ΔtextBinding(3, i0.Δinterpolation1("", (1 + 2), ""))',
source: '{{ 1 + 2 }}',
sourceUrl: '../extraRootDir/test.html'
});
diff --git a/packages/compiler-cli/test/ngtsc/template_typecheck_spec.ts b/packages/compiler-cli/test/ngtsc/template_typecheck_spec.ts
index e4f86e318d..00fc2b5e57 100644
--- a/packages/compiler-cli/test/ngtsc/template_typecheck_spec.ts
+++ b/packages/compiler-cli/test/ngtsc/template_typecheck_spec.ts
@@ -34,17 +34,17 @@ export declare class IndexPipe {
export declare class NgForOf {
ngForOf: T[];
static ngTemplateContextGuard(dir: NgForOf, ctx: any): ctx is NgForOfContext;
- static ngDirectiveDef: i0.ɵɵDirectiveDefWithMeta, '[ngFor][ngForOf]', never, {'ngForOf': 'ngForOf'}, {}, never>;
+ static ngDirectiveDef: i0.ΔDirectiveDefWithMeta, '[ngFor][ngForOf]', never, {'ngForOf': 'ngForOf'}, {}, never>;
}
export declare class NgIf {
ngIf: any;
static ngTemplateGuard_ngIf(dir: NgIf, expr: E): expr is NonNullable
- static ngDirectiveDef: i0.ɵɵDirectiveDefWithMeta, '[ngIf]', never, {'ngIf': 'ngIf'}, {}, never>;
+ static ngDirectiveDef: i0.ΔDirectiveDefWithMeta, '[ngIf]', never, {'ngIf': 'ngIf'}, {}, never>;
}
export declare class CommonModule {
- static ngModuleDef: i0.ɵɵNgModuleDefWithMeta;
+ static ngModuleDef: i0.ΔNgModuleDefWithMeta;
}
`);
}
diff --git a/packages/compiler/design/architecture.md b/packages/compiler/design/architecture.md
index 81591efb9b..6076110fde 100644
--- a/packages/compiler/design/architecture.md
+++ b/packages/compiler/design/architecture.md
@@ -81,18 +81,18 @@ In `ngtsc` this is instead emitted as,
```js
const i0 = require("@angular/core");
class GreetComponent {}
-GreetComponent.ngComponentDef = i0.ɵɵdefineComponent({
+GreetComponent.ngComponentDef = i0.ΔdefineComponent({
type: GreetComponent,
tag: 'greet',
factory: () => new GreetComponent(),
template: function (rf, ctx) {
if (rf & RenderFlags.Create) {
- i0.ɵɵelementStart(0, 'div');
- i0.ɵɵtext(1);
- i0.ɵɵelementEnd();
+ i0.ΔelementStart(0, 'div');
+ i0.Δtext(1);
+ i0.ΔelementEnd();
}
if (rf & RenderFlags.Update) {
- i0.ɵɵtextBinding(1, i0.ɵɵinterpolation1('Hello ', ctx.name, '!'));
+ i0.ΔtextBinding(1, i0.Δinterpolation1('Hello ', ctx.name, '!'));
}
}
});
diff --git a/packages/compiler/design/separate_compilation.md b/packages/compiler/design/separate_compilation.md
index 49fe89efcc..899d7a0ecc 100644
--- a/packages/compiler/design/separate_compilation.md
+++ b/packages/compiler/design/separate_compilation.md
@@ -161,7 +161,7 @@ export class MyComponent {
```js
export class MyComponent {
name: string;
- static ngComponentDef = ɵɵdefineComponent({...});
+ static ngComponentDef = ΔdefineComponent({...});
}
```
@@ -213,7 +213,7 @@ export class MyDirective {
constructor() {
this.dirId = 'some id';
}
- static ngDirectiveDef = ɵɵdefineDirective({...});
+ static ngDirectiveDef = ΔdefineDirective({...});
}
```
@@ -256,7 +256,7 @@ export class MyPipe implements PipeTransform {
```js
export class MyPipe {
transform(...) ...
- static ngPipeDef = ɵɵdefinePipe({...});
+ static ngPipeDef = ΔdefinePipe({...});
}
```
@@ -329,7 +329,7 @@ export class MyModule {}
*my.module.js*
```js
export class MyModule {
- static ngInjectorDef = ɵɵdefineInjector(...);
+ static ngInjectorDef = ΔdefineInjector(...);
}
```
@@ -389,7 +389,7 @@ manually written as:
```ts
export class MyModule {
- static ngInjectorDef = ɵɵdefineInjector({
+ static ngInjectorDef = ΔdefineInjector({
providers: [{
provide: Service, useClass: ServiceImpl
}],
@@ -411,7 +411,7 @@ export class MyModule {
}
```
-except for the call to `ɵɵdefineInjector` would generate a `{ __symbolic: 'error' }`
+except for the call to `ΔdefineInjector` would generate a `{ __symbolic: 'error' }`
value which is ignored by the ivy compiler. This allows the system to ignore
the difference between manually and mechanically created module definitions.
@@ -440,7 +440,7 @@ properties by including a `// @__BUILD_OPTIMIZER_REMOVE_` comment:
```ts
export class MyModule {
- static ngInjectorDef = ɵɵdefineInjector({
+ static ngInjectorDef = ΔdefineInjector({
providers: [{
provide: Service, useClass: ServiceImpl
}],
diff --git a/packages/compiler/src/identifiers.ts b/packages/compiler/src/identifiers.ts
index dd2b88f603..4978a6996e 100644
--- a/packages/compiler/src/identifiers.ts
+++ b/packages/compiler/src/identifiers.ts
@@ -62,11 +62,11 @@ export class Identifiers {
moduleName: CORE,
};
- static inject: o.ExternalReference = {name: 'ɵɵinject', moduleName: CORE};
+ static inject: o.ExternalReference = {name: 'Δinject', moduleName: CORE};
static INJECTOR: o.ExternalReference = {name: 'INJECTOR', moduleName: CORE};
static Injector: o.ExternalReference = {name: 'Injector', moduleName: CORE};
- static ɵɵdefineInjectable: o.ExternalReference = {name: 'ɵɵdefineInjectable', moduleName: CORE};
- static InjectableDef: o.ExternalReference = {name: 'ɵɵInjectableDef', moduleName: CORE};
+ static ΔdefineInjectable: o.ExternalReference = {name: 'ΔdefineInjectable', moduleName: CORE};
+ static InjectableDef: o.ExternalReference = {name: 'ΔInjectableDef', moduleName: CORE};
static ViewEncapsulation: o.ExternalReference = {
name: 'ViewEncapsulation',
moduleName: CORE,
diff --git a/packages/compiler/src/injectable_compiler.ts b/packages/compiler/src/injectable_compiler.ts
index d915800852..4e1291369e 100644
--- a/packages/compiler/src/injectable_compiler.ts
+++ b/packages/compiler/src/injectable_compiler.ts
@@ -116,7 +116,7 @@ export class InjectableCompiler {
mapEntry('token', ctx.importExpr(injectable.type.reference)),
mapEntry('providedIn', providedIn),
];
- return o.importExpr(Identifiers.ɵɵdefineInjectable).callFn([o.literalMap(def)]);
+ return o.importExpr(Identifiers.ΔdefineInjectable).callFn([o.literalMap(def)]);
}
compile(injectable: CompileInjectableMetadata, ctx: OutputContext): void {
diff --git a/packages/compiler/src/injectable_compiler_2.ts b/packages/compiler/src/injectable_compiler_2.ts
index 068697f00a..6158b92a91 100644
--- a/packages/compiler/src/injectable_compiler_2.ts
+++ b/packages/compiler/src/injectable_compiler_2.ts
@@ -100,7 +100,7 @@ export function compileInjectable(meta: R3InjectableMetadata): InjectableDef {
const token = meta.type;
const providedIn = meta.providedIn;
- const expression = o.importExpr(Identifiers.ɵɵdefineInjectable).callFn([mapToMapExpression(
+ const expression = o.importExpr(Identifiers.ΔdefineInjectable).callFn([mapToMapExpression(
{token, factory: result.factory, providedIn})]);
const type = new o.ExpressionType(o.importExpr(
Identifiers.InjectableDef, [typeWithParameters(meta.type, meta.typeArgumentCount)]));
diff --git a/packages/compiler/src/render3/r3_identifiers.ts b/packages/compiler/src/render3/r3_identifiers.ts
index af400aa98c..fb9944cf36 100644
--- a/packages/compiler/src/render3/r3_identifiers.ts
+++ b/packages/compiler/src/render3/r3_identifiers.ts
@@ -17,237 +17,237 @@ export class Identifiers {
static PATCH_DEPS = 'patchedDeps';
/* Instructions */
- static namespaceHTML: o.ExternalReference = {name: 'ɵɵnamespaceHTML', moduleName: CORE};
+ static namespaceHTML: o.ExternalReference = {name: 'ΔnamespaceHTML', moduleName: CORE};
- static namespaceMathML: o.ExternalReference = {name: 'ɵɵnamespaceMathML', moduleName: CORE};
+ static namespaceMathML: o.ExternalReference = {name: 'ΔnamespaceMathML', moduleName: CORE};
- static namespaceSVG: o.ExternalReference = {name: 'ɵɵnamespaceSVG', moduleName: CORE};
+ static namespaceSVG: o.ExternalReference = {name: 'ΔnamespaceSVG', moduleName: CORE};
- static element: o.ExternalReference = {name: 'ɵɵelement', moduleName: CORE};
+ static element: o.ExternalReference = {name: 'Δelement', moduleName: CORE};
- static elementStart: o.ExternalReference = {name: 'ɵɵelementStart', moduleName: CORE};
+ static elementStart: o.ExternalReference = {name: 'ΔelementStart', moduleName: CORE};
- static elementEnd: o.ExternalReference = {name: 'ɵɵelementEnd', moduleName: CORE};
+ static elementEnd: o.ExternalReference = {name: 'ΔelementEnd', moduleName: CORE};
- static elementProperty: o.ExternalReference = {name: 'ɵɵelementProperty', moduleName: CORE};
+ static elementProperty: o.ExternalReference = {name: 'ΔelementProperty', moduleName: CORE};
- static select: o.ExternalReference = {name: 'ɵɵselect', moduleName: CORE};
+ static select: o.ExternalReference = {name: 'Δselect', moduleName: CORE};
static componentHostSyntheticProperty:
- o.ExternalReference = {name: 'ɵɵcomponentHostSyntheticProperty', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔcomponentHostSyntheticProperty', moduleName: CORE};
static componentHostSyntheticListener:
- o.ExternalReference = {name: 'ɵɵcomponentHostSyntheticListener', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔcomponentHostSyntheticListener', moduleName: CORE};
- static elementAttribute: o.ExternalReference = {name: 'ɵɵelementAttribute', moduleName: CORE};
+ static elementAttribute: o.ExternalReference = {name: 'ΔelementAttribute', moduleName: CORE};
- static classProp: o.ExternalReference = {name: 'ɵɵclassProp', moduleName: CORE};
+ static classProp: o.ExternalReference = {name: 'ΔclassProp', moduleName: CORE};
static elementContainerStart:
- o.ExternalReference = {name: 'ɵɵelementContainerStart', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔelementContainerStart', moduleName: CORE};
static elementContainerEnd:
- o.ExternalReference = {name: 'ɵɵelementContainerEnd', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔelementContainerEnd', moduleName: CORE};
- static styling: o.ExternalReference = {name: 'ɵɵstyling', moduleName: CORE};
+ static styling: o.ExternalReference = {name: 'Δstyling', moduleName: CORE};
- static styleMap: o.ExternalReference = {name: 'ɵɵstyleMap', moduleName: CORE};
+ static styleMap: o.ExternalReference = {name: 'ΔstyleMap', moduleName: CORE};
- static classMap: o.ExternalReference = {name: 'ɵɵclassMap', moduleName: CORE};
+ static classMap: o.ExternalReference = {name: 'ΔclassMap', moduleName: CORE};
- static styleProp: o.ExternalReference = {name: 'ɵɵstyleProp', moduleName: CORE};
+ static styleProp: o.ExternalReference = {name: 'ΔstyleProp', moduleName: CORE};
- static stylingApply: o.ExternalReference = {name: 'ɵɵstylingApply', moduleName: CORE};
+ static stylingApply: o.ExternalReference = {name: 'ΔstylingApply', moduleName: CORE};
- static elementHostAttrs: o.ExternalReference = {name: 'ɵɵelementHostAttrs', moduleName: CORE};
+ static elementHostAttrs: o.ExternalReference = {name: 'ΔelementHostAttrs', moduleName: CORE};
- static containerCreate: o.ExternalReference = {name: 'ɵɵcontainer', moduleName: CORE};
+ static containerCreate: o.ExternalReference = {name: 'Δcontainer', moduleName: CORE};
- static nextContext: o.ExternalReference = {name: 'ɵɵnextContext', moduleName: CORE};
+ static nextContext: o.ExternalReference = {name: 'ΔnextContext', moduleName: CORE};
- static templateCreate: o.ExternalReference = {name: 'ɵɵtemplate', moduleName: CORE};
+ static templateCreate: o.ExternalReference = {name: 'Δtemplate', moduleName: CORE};
- static text: o.ExternalReference = {name: 'ɵɵtext', moduleName: CORE};
+ static text: o.ExternalReference = {name: 'Δtext', moduleName: CORE};
- static textBinding: o.ExternalReference = {name: 'ɵɵtextBinding', moduleName: CORE};
+ static textBinding: o.ExternalReference = {name: 'ΔtextBinding', moduleName: CORE};
- static bind: o.ExternalReference = {name: 'ɵɵbind', moduleName: CORE};
+ static bind: o.ExternalReference = {name: 'Δbind', moduleName: CORE};
- static enableBindings: o.ExternalReference = {name: 'ɵɵenableBindings', moduleName: CORE};
+ static enableBindings: o.ExternalReference = {name: 'ΔenableBindings', moduleName: CORE};
- static disableBindings: o.ExternalReference = {name: 'ɵɵdisableBindings', moduleName: CORE};
+ static disableBindings: o.ExternalReference = {name: 'ΔdisableBindings', moduleName: CORE};
- static allocHostVars: o.ExternalReference = {name: 'ɵɵallocHostVars', moduleName: CORE};
+ static allocHostVars: o.ExternalReference = {name: 'ΔallocHostVars', moduleName: CORE};
- static getCurrentView: o.ExternalReference = {name: 'ɵɵgetCurrentView', moduleName: CORE};
+ static getCurrentView: o.ExternalReference = {name: 'ΔgetCurrentView', moduleName: CORE};
- static restoreView: o.ExternalReference = {name: 'ɵɵrestoreView', moduleName: CORE};
+ static restoreView: o.ExternalReference = {name: 'ΔrestoreView', moduleName: CORE};
- static interpolation1: o.ExternalReference = {name: 'ɵɵinterpolation1', moduleName: CORE};
- static interpolation2: o.ExternalReference = {name: 'ɵɵinterpolation2', moduleName: CORE};
- static interpolation3: o.ExternalReference = {name: 'ɵɵinterpolation3', moduleName: CORE};
- static interpolation4: o.ExternalReference = {name: 'ɵɵinterpolation4', moduleName: CORE};
- static interpolation5: o.ExternalReference = {name: 'ɵɵinterpolation5', moduleName: CORE};
- static interpolation6: o.ExternalReference = {name: 'ɵɵinterpolation6', moduleName: CORE};
- static interpolation7: o.ExternalReference = {name: 'ɵɵinterpolation7', moduleName: CORE};
- static interpolation8: o.ExternalReference = {name: 'ɵɵinterpolation8', moduleName: CORE};
- static interpolationV: o.ExternalReference = {name: 'ɵɵinterpolationV', moduleName: CORE};
+ static interpolation1: o.ExternalReference = {name: 'Δinterpolation1', moduleName: CORE};
+ static interpolation2: o.ExternalReference = {name: 'Δinterpolation2', moduleName: CORE};
+ static interpolation3: o.ExternalReference = {name: 'Δinterpolation3', moduleName: CORE};
+ static interpolation4: o.ExternalReference = {name: 'Δinterpolation4', moduleName: CORE};
+ static interpolation5: o.ExternalReference = {name: 'Δinterpolation5', moduleName: CORE};
+ static interpolation6: o.ExternalReference = {name: 'Δinterpolation6', moduleName: CORE};
+ static interpolation7: o.ExternalReference = {name: 'Δinterpolation7', moduleName: CORE};
+ static interpolation8: o.ExternalReference = {name: 'Δinterpolation8', moduleName: CORE};
+ static interpolationV: o.ExternalReference = {name: 'ΔinterpolationV', moduleName: CORE};
- static pureFunction0: o.ExternalReference = {name: 'ɵɵpureFunction0', moduleName: CORE};
- static pureFunction1: o.ExternalReference = {name: 'ɵɵpureFunction1', moduleName: CORE};
- static pureFunction2: o.ExternalReference = {name: 'ɵɵpureFunction2', moduleName: CORE};
- static pureFunction3: o.ExternalReference = {name: 'ɵɵpureFunction3', moduleName: CORE};
- static pureFunction4: o.ExternalReference = {name: 'ɵɵpureFunction4', moduleName: CORE};
- static pureFunction5: o.ExternalReference = {name: 'ɵɵpureFunction5', moduleName: CORE};
- static pureFunction6: o.ExternalReference = {name: 'ɵɵpureFunction6', moduleName: CORE};
- static pureFunction7: o.ExternalReference = {name: 'ɵɵpureFunction7', moduleName: CORE};
- static pureFunction8: o.ExternalReference = {name: 'ɵɵpureFunction8', moduleName: CORE};
- static pureFunctionV: o.ExternalReference = {name: 'ɵɵpureFunctionV', moduleName: CORE};
+ static pureFunction0: o.ExternalReference = {name: 'ΔpureFunction0', moduleName: CORE};
+ static pureFunction1: o.ExternalReference = {name: 'ΔpureFunction1', moduleName: CORE};
+ static pureFunction2: o.ExternalReference = {name: 'ΔpureFunction2', moduleName: CORE};
+ static pureFunction3: o.ExternalReference = {name: 'ΔpureFunction3', moduleName: CORE};
+ static pureFunction4: o.ExternalReference = {name: 'ΔpureFunction4', moduleName: CORE};
+ static pureFunction5: o.ExternalReference = {name: 'ΔpureFunction5', moduleName: CORE};
+ static pureFunction6: o.ExternalReference = {name: 'ΔpureFunction6', moduleName: CORE};
+ static pureFunction7: o.ExternalReference = {name: 'ΔpureFunction7', moduleName: CORE};
+ static pureFunction8: o.ExternalReference = {name: 'ΔpureFunction8', moduleName: CORE};
+ static pureFunctionV: o.ExternalReference = {name: 'ΔpureFunctionV', moduleName: CORE};
- static pipeBind1: o.ExternalReference = {name: 'ɵɵpipeBind1', moduleName: CORE};
- static pipeBind2: o.ExternalReference = {name: 'ɵɵpipeBind2', moduleName: CORE};
- static pipeBind3: o.ExternalReference = {name: 'ɵɵpipeBind3', moduleName: CORE};
- static pipeBind4: o.ExternalReference = {name: 'ɵɵpipeBind4', moduleName: CORE};
- static pipeBindV: o.ExternalReference = {name: 'ɵɵpipeBindV', moduleName: CORE};
+ static pipeBind1: o.ExternalReference = {name: 'ΔpipeBind1', moduleName: CORE};
+ static pipeBind2: o.ExternalReference = {name: 'ΔpipeBind2', moduleName: CORE};
+ static pipeBind3: o.ExternalReference = {name: 'ΔpipeBind3', moduleName: CORE};
+ static pipeBind4: o.ExternalReference = {name: 'ΔpipeBind4', moduleName: CORE};
+ static pipeBindV: o.ExternalReference = {name: 'ΔpipeBindV', moduleName: CORE};
- static property: o.ExternalReference = {name: 'ɵɵproperty', moduleName: CORE};
+ static property: o.ExternalReference = {name: 'Δproperty', moduleName: CORE};
static propertyInterpolate:
- o.ExternalReference = {name: 'ɵɵpropertyInterpolate', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔpropertyInterpolate', moduleName: CORE};
static propertyInterpolate1:
- o.ExternalReference = {name: 'ɵɵpropertyInterpolate1', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔpropertyInterpolate1', moduleName: CORE};
static propertyInterpolate2:
- o.ExternalReference = {name: 'ɵɵpropertyInterpolate2', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔpropertyInterpolate2', moduleName: CORE};
static propertyInterpolate3:
- o.ExternalReference = {name: 'ɵɵpropertyInterpolate3', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔpropertyInterpolate3', moduleName: CORE};
static propertyInterpolate4:
- o.ExternalReference = {name: 'ɵɵpropertyInterpolate4', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔpropertyInterpolate4', moduleName: CORE};
static propertyInterpolate5:
- o.ExternalReference = {name: 'ɵɵpropertyInterpolate5', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔpropertyInterpolate5', moduleName: CORE};
static propertyInterpolate6:
- o.ExternalReference = {name: 'ɵɵpropertyInterpolate6', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔpropertyInterpolate6', moduleName: CORE};
static propertyInterpolate7:
- o.ExternalReference = {name: 'ɵɵpropertyInterpolate7', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔpropertyInterpolate7', moduleName: CORE};
static propertyInterpolate8:
- o.ExternalReference = {name: 'ɵɵpropertyInterpolate8', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔpropertyInterpolate8', moduleName: CORE};
static propertyInterpolateV:
- o.ExternalReference = {name: 'ɵɵpropertyInterpolateV', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔpropertyInterpolateV', moduleName: CORE};
- static i18n: o.ExternalReference = {name: 'ɵɵi18n', moduleName: CORE};
- static i18nAttributes: o.ExternalReference = {name: 'ɵɵi18nAttributes', moduleName: CORE};
- static i18nExp: o.ExternalReference = {name: 'ɵɵi18nExp', moduleName: CORE};
- static i18nStart: o.ExternalReference = {name: 'ɵɵi18nStart', moduleName: CORE};
- static i18nEnd: o.ExternalReference = {name: 'ɵɵi18nEnd', moduleName: CORE};
- static i18nApply: o.ExternalReference = {name: 'ɵɵi18nApply', moduleName: CORE};
- static i18nPostprocess: o.ExternalReference = {name: 'ɵɵi18nPostprocess', moduleName: CORE};
- static i18nLocalize: o.ExternalReference = {name: 'ɵɵi18nLocalize', moduleName: CORE};
+ static i18n: o.ExternalReference = {name: 'Δi18n', moduleName: CORE};
+ static i18nAttributes: o.ExternalReference = {name: 'Δi18nAttributes', moduleName: CORE};
+ static i18nExp: o.ExternalReference = {name: 'Δi18nExp', moduleName: CORE};
+ static i18nStart: o.ExternalReference = {name: 'Δi18nStart', moduleName: CORE};
+ static i18nEnd: o.ExternalReference = {name: 'Δi18nEnd', moduleName: CORE};
+ static i18nApply: o.ExternalReference = {name: 'Δi18nApply', moduleName: CORE};
+ static i18nPostprocess: o.ExternalReference = {name: 'Δi18nPostprocess', moduleName: CORE};
+ static i18nLocalize: o.ExternalReference = {name: 'Δi18nLocalize', moduleName: CORE};
- static load: o.ExternalReference = {name: 'ɵɵload', moduleName: CORE};
+ static load: o.ExternalReference = {name: 'Δload', moduleName: CORE};
- static pipe: o.ExternalReference = {name: 'ɵɵpipe', moduleName: CORE};
+ static pipe: o.ExternalReference = {name: 'Δpipe', moduleName: CORE};
- static projection: o.ExternalReference = {name: 'ɵɵprojection', moduleName: CORE};
- static projectionDef: o.ExternalReference = {name: 'ɵɵprojectionDef', moduleName: CORE};
+ static projection: o.ExternalReference = {name: 'Δprojection', moduleName: CORE};
+ static projectionDef: o.ExternalReference = {name: 'ΔprojectionDef', moduleName: CORE};
- static reference: o.ExternalReference = {name: 'ɵɵreference', moduleName: CORE};
+ static reference: o.ExternalReference = {name: 'Δreference', moduleName: CORE};
- static inject: o.ExternalReference = {name: 'ɵɵinject', moduleName: CORE};
+ static inject: o.ExternalReference = {name: 'Δinject', moduleName: CORE};
- static injectAttribute: o.ExternalReference = {name: 'ɵɵinjectAttribute', moduleName: CORE};
+ static injectAttribute: o.ExternalReference = {name: 'ΔinjectAttribute', moduleName: CORE};
- static directiveInject: o.ExternalReference = {name: 'ɵɵdirectiveInject', moduleName: CORE};
+ static directiveInject: o.ExternalReference = {name: 'ΔdirectiveInject', moduleName: CORE};
static templateRefExtractor:
- o.ExternalReference = {name: 'ɵɵtemplateRefExtractor', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔtemplateRefExtractor', moduleName: CORE};
- static resolveWindow: o.ExternalReference = {name: 'ɵɵresolveWindow', moduleName: CORE};
- static resolveDocument: o.ExternalReference = {name: 'ɵɵresolveDocument', moduleName: CORE};
- static resolveBody: o.ExternalReference = {name: 'ɵɵresolveBody', moduleName: CORE};
+ static resolveWindow: o.ExternalReference = {name: 'ΔresolveWindow', moduleName: CORE};
+ static resolveDocument: o.ExternalReference = {name: 'ΔresolveDocument', moduleName: CORE};
+ static resolveBody: o.ExternalReference = {name: 'ΔresolveBody', moduleName: CORE};
- static defineBase: o.ExternalReference = {name: 'ɵɵdefineBase', moduleName: CORE};
+ static defineBase: o.ExternalReference = {name: 'ΔdefineBase', moduleName: CORE};
static BaseDef: o.ExternalReference = {
- name: 'ɵɵBaseDef',
+ name: 'ΔBaseDef',
moduleName: CORE,
};
- static defineComponent: o.ExternalReference = {name: 'ɵɵdefineComponent', moduleName: CORE};
+ static defineComponent: o.ExternalReference = {name: 'ΔdefineComponent', moduleName: CORE};
- static setComponentScope: o.ExternalReference = {name: 'ɵɵsetComponentScope', moduleName: CORE};
+ static setComponentScope: o.ExternalReference = {name: 'ΔsetComponentScope', moduleName: CORE};
static ComponentDefWithMeta: o.ExternalReference = {
- name: 'ɵɵComponentDefWithMeta',
+ name: 'ΔComponentDefWithMeta',
moduleName: CORE,
};
static defineDirective: o.ExternalReference = {
- name: 'ɵɵdefineDirective',
+ name: 'ΔdefineDirective',
moduleName: CORE,
};
static DirectiveDefWithMeta: o.ExternalReference = {
- name: 'ɵɵDirectiveDefWithMeta',
+ name: 'ΔDirectiveDefWithMeta',
moduleName: CORE,
};
static InjectorDef: o.ExternalReference = {
- name: 'ɵɵInjectorDef',
+ name: 'ΔInjectorDef',
moduleName: CORE,
};
static defineInjector: o.ExternalReference = {
- name: 'ɵɵdefineInjector',
+ name: 'ΔdefineInjector',
moduleName: CORE,
};
static NgModuleDefWithMeta: o.ExternalReference = {
- name: 'ɵɵNgModuleDefWithMeta',
+ name: 'ΔNgModuleDefWithMeta',
moduleName: CORE,
};
- static defineNgModule: o.ExternalReference = {name: 'ɵɵdefineNgModule', moduleName: CORE};
- static setNgModuleScope: o.ExternalReference = {name: 'ɵɵsetNgModuleScope', moduleName: CORE};
+ static defineNgModule: o.ExternalReference = {name: 'ΔdefineNgModule', moduleName: CORE};
+ static setNgModuleScope: o.ExternalReference = {name: 'ΔsetNgModuleScope', moduleName: CORE};
- static PipeDefWithMeta: o.ExternalReference = {name: 'ɵɵPipeDefWithMeta', moduleName: CORE};
+ static PipeDefWithMeta: o.ExternalReference = {name: 'ΔPipeDefWithMeta', moduleName: CORE};
- static definePipe: o.ExternalReference = {name: 'ɵɵdefinePipe', moduleName: CORE};
+ static definePipe: o.ExternalReference = {name: 'ΔdefinePipe', moduleName: CORE};
- static queryRefresh: o.ExternalReference = {name: 'ɵɵqueryRefresh', moduleName: CORE};
- static viewQuery: o.ExternalReference = {name: 'ɵɵviewQuery', moduleName: CORE};
- static staticViewQuery: o.ExternalReference = {name: 'ɵɵstaticViewQuery', moduleName: CORE};
- static staticContentQuery: o.ExternalReference = {name: 'ɵɵstaticContentQuery', moduleName: CORE};
- static loadViewQuery: o.ExternalReference = {name: 'ɵɵloadViewQuery', moduleName: CORE};
- static contentQuery: o.ExternalReference = {name: 'ɵɵcontentQuery', moduleName: CORE};
- static loadContentQuery: o.ExternalReference = {name: 'ɵɵloadContentQuery', moduleName: CORE};
+ static queryRefresh: o.ExternalReference = {name: 'ΔqueryRefresh', moduleName: CORE};
+ static viewQuery: o.ExternalReference = {name: 'ΔviewQuery', moduleName: CORE};
+ static staticViewQuery: o.ExternalReference = {name: 'ΔstaticViewQuery', moduleName: CORE};
+ static staticContentQuery: o.ExternalReference = {name: 'ΔstaticContentQuery', moduleName: CORE};
+ static loadViewQuery: o.ExternalReference = {name: 'ΔloadViewQuery', moduleName: CORE};
+ static contentQuery: o.ExternalReference = {name: 'ΔcontentQuery', moduleName: CORE};
+ static loadContentQuery: o.ExternalReference = {name: 'ΔloadContentQuery', moduleName: CORE};
- static NgOnChangesFeature: o.ExternalReference = {name: 'ɵɵNgOnChangesFeature', moduleName: CORE};
+ static NgOnChangesFeature: o.ExternalReference = {name: 'ΔNgOnChangesFeature', moduleName: CORE};
static InheritDefinitionFeature:
- o.ExternalReference = {name: 'ɵɵInheritDefinitionFeature', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔInheritDefinitionFeature', moduleName: CORE};
- static ProvidersFeature: o.ExternalReference = {name: 'ɵɵProvidersFeature', moduleName: CORE};
+ static ProvidersFeature: o.ExternalReference = {name: 'ΔProvidersFeature', moduleName: CORE};
- static listener: o.ExternalReference = {name: 'ɵɵlistener', moduleName: CORE};
+ static listener: o.ExternalReference = {name: 'Δlistener', moduleName: CORE};
static getFactoryOf: o.ExternalReference = {
- name: 'ɵɵgetFactoryOf',
+ name: 'ΔgetFactoryOf',
moduleName: CORE,
};
static getInheritedFactory: o.ExternalReference = {
- name: 'ɵɵgetInheritedFactory',
+ name: 'ΔgetInheritedFactory',
moduleName: CORE,
};
// sanitization-related functions
- static sanitizeHtml: o.ExternalReference = {name: 'ɵɵsanitizeHtml', moduleName: CORE};
- static sanitizeStyle: o.ExternalReference = {name: 'ɵɵsanitizeStyle', moduleName: CORE};
+ static sanitizeHtml: o.ExternalReference = {name: 'ΔsanitizeHtml', moduleName: CORE};
+ static sanitizeStyle: o.ExternalReference = {name: 'ΔsanitizeStyle', moduleName: CORE};
static defaultStyleSanitizer:
- o.ExternalReference = {name: 'ɵɵdefaultStyleSanitizer', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔdefaultStyleSanitizer', moduleName: CORE};
static sanitizeResourceUrl:
- o.ExternalReference = {name: 'ɵɵsanitizeResourceUrl', moduleName: CORE};
- static sanitizeScript: o.ExternalReference = {name: 'ɵɵsanitizeScript', moduleName: CORE};
- static sanitizeUrl: o.ExternalReference = {name: 'ɵɵsanitizeUrl', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔsanitizeResourceUrl', moduleName: CORE};
+ static sanitizeScript: o.ExternalReference = {name: 'ΔsanitizeScript', moduleName: CORE};
+ static sanitizeUrl: o.ExternalReference = {name: 'ΔsanitizeUrl', moduleName: CORE};
static sanitizeUrlOrResourceUrl:
- o.ExternalReference = {name: 'ɵɵsanitizeUrlOrResourceUrl', moduleName: CORE};
+ o.ExternalReference = {name: 'ΔsanitizeUrlOrResourceUrl', moduleName: CORE};
}
diff --git a/packages/compiler/src/render3/r3_module_compiler.ts b/packages/compiler/src/render3/r3_module_compiler.ts
index df83a468d6..e45f8f0acb 100644
--- a/packages/compiler/src/render3/r3_module_compiler.ts
+++ b/packages/compiler/src/render3/r3_module_compiler.ts
@@ -107,7 +107,7 @@ export function compileNgModule(meta: R3NgModuleMetadata): R3NgModuleDef {
}
// If requested to emit scope information inline, pass the declarations, imports and exports to
- // the `ɵɵdefineNgModule` call. The JIT compilation uses this.
+ // the `ΔdefineNgModule` call. The JIT compilation uses this.
if (emitInline) {
if (declarations.length) {
definitionMap.declarations = refsToArray(declarations, containsForwardDecls);
@@ -122,7 +122,7 @@ export function compileNgModule(meta: R3NgModuleMetadata): R3NgModuleDef {
}
}
- // If not emitting inline, the scope information is not passed into `ɵɵdefineNgModule` as it would
+ // If not emitting inline, the scope information is not passed into `ΔdefineNgModule` as it would
// prevent tree-shaking of the declarations, imports and exports references.
else {
const setNgModuleScopeCall = generateSetNgModuleScopeCall(meta);
@@ -150,7 +150,7 @@ export function compileNgModule(meta: R3NgModuleMetadata): R3NgModuleDef {
}
/**
- * Generates a function call to `ɵɵsetNgModuleScope` with all necessary information so that the
+ * Generates a function call to `ΔsetNgModuleScope` with all necessary information so that the
* transitive module scope can be computed during runtime in JIT mode. This call is marked pure
* such that the references to declarations, imports and exports may be elided causing these
* symbols to become tree-shakeable.
diff --git a/packages/compiler/src/render3/view/template.ts b/packages/compiler/src/render3/view/template.ts
index 758ceb66ea..17c1fbf41d 100644
--- a/packages/compiler/src/render3/view/template.ts
+++ b/packages/compiler/src/render3/view/template.ts
@@ -874,7 +874,7 @@ export class TemplateDefinitionBuilder implements t.Visitor, LocalResolver
return trimTrailingNulls(parameters);
});
- // handle property bindings e.g. ɵɵproperty('ngForOf', ctx.items), et al;
+ // handle property bindings e.g. Δproperty('ngForOf', ctx.items), et al;
const context = o.variable(CONTEXT_NAME);
this.templatePropertyBindings(template, templateIndex, context, template.templateAttrs);
diff --git a/packages/core/src/change_detection/differs/iterable_differs.ts b/packages/core/src/change_detection/differs/iterable_differs.ts
index 2d08ea8b5a..f8727adb5e 100644
--- a/packages/core/src/change_detection/differs/iterable_differs.ts
+++ b/packages/core/src/change_detection/differs/iterable_differs.ts
@@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
-import {ɵɵdefineInjectable} from '../../di/interface/defs';
+import {ΔdefineInjectable} from '../../di/interface/defs';
import {StaticProvider} from '../../di/interface/provider';
import {Optional, SkipSelf} from '../../di/metadata';
import {DefaultIterableDifferFactory} from '../differs/default_iterable_differ';
@@ -143,7 +143,7 @@ export interface IterableDifferFactory {
*/
export class IterableDiffers {
/** @nocollapse */
- static ngInjectableDef = ɵɵdefineInjectable({
+ static ngInjectableDef = ΔdefineInjectable({
providedIn: 'root',
factory: () => new IterableDiffers([new DefaultIterableDifferFactory()])
});
diff --git a/packages/core/src/change_detection/differs/keyvalue_differs.ts b/packages/core/src/change_detection/differs/keyvalue_differs.ts
index 5c9571ef05..d511134b72 100644
--- a/packages/core/src/change_detection/differs/keyvalue_differs.ts
+++ b/packages/core/src/change_detection/differs/keyvalue_differs.ts
@@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
-import {Optional, SkipSelf, StaticProvider, ɵɵdefineInjectable} from '../../di';
+import {Optional, SkipSelf, StaticProvider, ΔdefineInjectable} from '../../di';
import {DefaultKeyValueDifferFactory} from './default_keyvalue_differ';
@@ -118,7 +118,7 @@ export interface KeyValueDifferFactory {
*/
export class KeyValueDiffers {
/** @nocollapse */
- static ngInjectableDef = ɵɵdefineInjectable({
+ static ngInjectableDef = ΔdefineInjectable({
providedIn: 'root',
factory: () => new KeyValueDiffers([new DefaultKeyValueDifferFactory()])
});
diff --git a/packages/core/src/core_private_export.ts b/packages/core/src/core_private_export.ts
index 1a446cbee5..98595d9b27 100644
--- a/packages/core/src/core_private_export.ts
+++ b/packages/core/src/core_private_export.ts
@@ -13,8 +13,8 @@ export {devModeEqual as ɵdevModeEqual} from './change_detection/change_detectio
export {isListLikeIterable as ɵisListLikeIterable} from './change_detection/change_detection_util';
export {ChangeDetectorStatus as ɵChangeDetectorStatus, isDefaultChangeDetectionStrategy as ɵisDefaultChangeDetectionStrategy} from './change_detection/constants';
export {Console as ɵConsole} from './console';
-export {inject, setCurrentInjector as ɵsetCurrentInjector, ɵɵinject} from './di/injector_compatibility';
-export {getInjectableDef as ɵgetInjectableDef, ɵɵInjectableDef as ɵɵInjectableDef, ɵɵInjectorDef} from './di/interface/defs';
+export {inject, setCurrentInjector as ɵsetCurrentInjector, Δinject} from './di/injector_compatibility';
+export {getInjectableDef as ɵgetInjectableDef, ΔInjectableDef as ΔInjectableDef, ΔInjectorDef} from './di/interface/defs';
export {APP_ROOT as ɵAPP_ROOT} from './di/scope';
export {ivyEnabled as ɵivyEnabled} from './ivy_switch';
export {ComponentFactory as ɵComponentFactory} from './linker/component_factory';
diff --git a/packages/core/src/core_render3_private_export.ts b/packages/core/src/core_render3_private_export.ts
index f2b48983e4..0bd5a86bab 100644
--- a/packages/core/src/core_render3_private_export.ts
+++ b/packages/core/src/core_render3_private_export.ts
@@ -8,11 +8,11 @@
// clang-format off
export {
- ɵɵdefineBase,
- ɵɵdefineComponent,
- ɵɵdefineDirective,
- ɵɵdefinePipe,
- ɵɵdefineNgModule,
+ ΔdefineBase,
+ ΔdefineComponent,
+ ΔdefineDirective,
+ ΔdefinePipe,
+ ΔdefineNgModule,
detectChanges as ɵdetectChanges,
renderComponent as ɵrenderComponent,
AttributeMarker as ɵAttributeMarker,
@@ -21,16 +21,16 @@ export {
ComponentRef as ɵRender3ComponentRef,
DirectiveType as ɵDirectiveType,
RenderFlags as ɵRenderFlags,
- ɵɵdirectiveInject,
- ɵɵinjectAttribute,
- ɵɵgetFactoryOf,
- ɵɵgetInheritedFactory,
- ɵɵsetComponentScope,
- ɵɵsetNgModuleScope,
- ɵɵtemplateRefExtractor,
- ɵɵProvidersFeature,
- ɵɵInheritDefinitionFeature,
- ɵɵNgOnChangesFeature,
+ ΔdirectiveInject,
+ ΔinjectAttribute,
+ ΔgetFactoryOf,
+ ΔgetInheritedFactory,
+ ΔsetComponentScope,
+ ΔsetNgModuleScope,
+ ΔtemplateRefExtractor,
+ ΔProvidersFeature,
+ ΔInheritDefinitionFeature,
+ ΔNgOnChangesFeature,
LifecycleHooksFeature as ɵLifecycleHooksFeature,
NgModuleType as ɵNgModuleType,
NgModuleRef as ɵRender3NgModuleRef,
@@ -38,114 +38,114 @@ export {
markDirty as ɵmarkDirty,
NgModuleFactory as ɵNgModuleFactory,
NO_CHANGE as ɵNO_CHANGE,
- ɵɵcontainer,
- ɵɵnextContext,
- ɵɵelementStart,
- ɵɵnamespaceHTML,
- ɵɵnamespaceMathML,
- ɵɵnamespaceSVG,
- ɵɵelement,
- ɵɵlistener,
- ɵɵtext,
- ɵɵembeddedViewStart,
- ɵɵprojection,
- ɵɵbind,
- ɵɵinterpolation1,
- ɵɵinterpolation2,
- ɵɵinterpolation3,
- ɵɵinterpolation4,
- ɵɵinterpolation5,
- ɵɵinterpolation6,
- ɵɵinterpolation7,
- ɵɵinterpolation8,
- ɵɵinterpolationV,
- ɵɵpipeBind1,
- ɵɵpipeBind2,
- ɵɵpipeBind3,
- ɵɵpipeBind4,
- ɵɵpipeBindV,
- ɵɵpureFunction0,
- ɵɵpureFunction1,
- ɵɵpureFunction2,
- ɵɵpureFunction3,
- ɵɵpureFunction4,
- ɵɵpureFunction5,
- ɵɵpureFunction6,
- ɵɵpureFunction7,
- ɵɵpureFunction8,
- ɵɵpureFunctionV,
- ɵɵgetCurrentView,
+ Δcontainer,
+ ΔnextContext,
+ ΔelementStart,
+ ΔnamespaceHTML,
+ ΔnamespaceMathML,
+ ΔnamespaceSVG,
+ Δelement,
+ Δlistener,
+ Δtext,
+ ΔembeddedViewStart,
+ Δprojection,
+ Δbind,
+ Δinterpolation1,
+ Δinterpolation2,
+ Δinterpolation3,
+ Δinterpolation4,
+ Δinterpolation5,
+ Δinterpolation6,
+ Δinterpolation7,
+ Δinterpolation8,
+ ΔinterpolationV,
+ ΔpipeBind1,
+ ΔpipeBind2,
+ ΔpipeBind3,
+ ΔpipeBind4,
+ ΔpipeBindV,
+ ΔpureFunction0,
+ ΔpureFunction1,
+ ΔpureFunction2,
+ ΔpureFunction3,
+ ΔpureFunction4,
+ ΔpureFunction5,
+ ΔpureFunction6,
+ ΔpureFunction7,
+ ΔpureFunction8,
+ ΔpureFunctionV,
+ ΔgetCurrentView,
getDirectives as ɵgetDirectives,
getHostElement as ɵgetHostElement,
- ɵɵrestoreView,
- ɵɵcontainerRefreshStart,
- ɵɵcontainerRefreshEnd,
- ɵɵqueryRefresh,
- ɵɵviewQuery,
- ɵɵstaticViewQuery,
- ɵɵstaticContentQuery,
- ɵɵloadViewQuery,
- ɵɵcontentQuery,
- ɵɵloadContentQuery,
- ɵɵelementEnd,
- ɵɵelementProperty,
- ɵɵproperty,
- ɵɵpropertyInterpolate,
- ɵɵpropertyInterpolate1,
- ɵɵpropertyInterpolate2,
- ɵɵpropertyInterpolate3,
- ɵɵpropertyInterpolate4,
- ɵɵpropertyInterpolate5,
- ɵɵpropertyInterpolate6,
- ɵɵpropertyInterpolate7,
- ɵɵpropertyInterpolate8,
- ɵɵpropertyInterpolateV,
- ɵɵcomponentHostSyntheticProperty,
- ɵɵcomponentHostSyntheticListener,
- ɵɵprojectionDef,
- ɵɵreference,
- ɵɵenableBindings,
- ɵɵdisableBindings,
- ɵɵallocHostVars,
- ɵɵelementAttribute,
- ɵɵelementContainerStart,
- ɵɵelementContainerEnd,
- ɵɵstyling,
- ɵɵstyleMap,
- ɵɵclassMap,
- ɵɵstyleProp,
- ɵɵstylingApply,
- ɵɵclassProp,
- ɵɵelementHostAttrs,
+ ΔrestoreView,
+ ΔcontainerRefreshStart,
+ ΔcontainerRefreshEnd,
+ ΔqueryRefresh,
+ ΔviewQuery,
+ ΔstaticViewQuery,
+ ΔstaticContentQuery,
+ ΔloadViewQuery,
+ ΔcontentQuery,
+ ΔloadContentQuery,
+ ΔelementEnd,
+ ΔelementProperty,
+ Δproperty,
+ ΔpropertyInterpolate,
+ ΔpropertyInterpolate1,
+ ΔpropertyInterpolate2,
+ ΔpropertyInterpolate3,
+ ΔpropertyInterpolate4,
+ ΔpropertyInterpolate5,
+ ΔpropertyInterpolate6,
+ ΔpropertyInterpolate7,
+ ΔpropertyInterpolate8,
+ ΔpropertyInterpolateV,
+ ΔcomponentHostSyntheticProperty,
+ ΔcomponentHostSyntheticListener,
+ ΔprojectionDef,
+ Δreference,
+ ΔenableBindings,
+ ΔdisableBindings,
+ ΔallocHostVars,
+ ΔelementAttribute,
+ ΔelementContainerStart,
+ ΔelementContainerEnd,
+ Δstyling,
+ ΔstyleMap,
+ ΔclassMap,
+ ΔstyleProp,
+ ΔstylingApply,
+ ΔclassProp,
+ ΔelementHostAttrs,
- ɵɵselect,
- ɵɵtextBinding,
- ɵɵtemplate,
- ɵɵembeddedViewEnd,
+ Δselect,
+ ΔtextBinding,
+ Δtemplate,
+ ΔembeddedViewEnd,
store as ɵstore,
- ɵɵload,
- ɵɵpipe,
- ɵɵBaseDef,
+ Δload,
+ Δpipe,
+ ΔBaseDef,
ComponentDef as ɵComponentDef,
- ɵɵComponentDefWithMeta,
+ ΔComponentDefWithMeta,
DirectiveDef as ɵDirectiveDef,
- ɵɵDirectiveDefWithMeta,
+ ΔDirectiveDefWithMeta,
PipeDef as ɵPipeDef,
- ɵɵPipeDefWithMeta,
+ ΔPipeDefWithMeta,
whenRendered as ɵwhenRendered,
- ɵɵi18n,
- ɵɵi18nAttributes,
- ɵɵi18nExp,
- ɵɵi18nStart,
- ɵɵi18nEnd,
- ɵɵi18nApply,
- ɵɵi18nPostprocess,
+ Δi18n,
+ Δi18nAttributes,
+ Δi18nExp,
+ Δi18nStart,
+ Δi18nEnd,
+ Δi18nApply,
+ Δi18nPostprocess,
i18nConfigureLocalize as ɵi18nConfigureLocalize,
- ɵɵi18nLocalize,
+ Δi18nLocalize,
setClassMetadata as ɵsetClassMetadata,
- ɵɵresolveWindow,
- ɵɵresolveDocument,
- ɵɵresolveBody,
+ ΔresolveWindow,
+ ΔresolveDocument,
+ ΔresolveBody,
} from './render3/index';
@@ -167,18 +167,18 @@ export {
export {
NgModuleDef as ɵNgModuleDef,
- ɵɵNgModuleDefWithMeta,
+ ΔNgModuleDefWithMeta,
NgModuleTransitiveScopes as ɵNgModuleTransitiveScopes,
} from './metadata/ng_module';
export {
- ɵɵsanitizeHtml,
- ɵɵsanitizeStyle,
- ɵɵdefaultStyleSanitizer,
- ɵɵsanitizeScript,
- ɵɵsanitizeUrl,
- ɵɵsanitizeResourceUrl,
- ɵɵsanitizeUrlOrResourceUrl,
+ ΔsanitizeHtml,
+ ΔsanitizeStyle,
+ ΔdefaultStyleSanitizer,
+ ΔsanitizeScript,
+ ΔsanitizeUrl,
+ ΔsanitizeResourceUrl,
+ ΔsanitizeUrlOrResourceUrl,
} from './sanitization/sanitization';
export {
diff --git a/packages/core/src/di/index.ts b/packages/core/src/di/index.ts
index 6435213cad..02f2ed5631 100644
--- a/packages/core/src/di/index.ts
+++ b/packages/core/src/di/index.ts
@@ -14,11 +14,11 @@
export * from './metadata';
export {InjectFlags} from './interface/injector';
-export {ɵɵdefineInjectable, defineInjectable, ɵɵdefineInjector, InjectableType, InjectorType} from './interface/defs';
+export {ΔdefineInjectable, defineInjectable, ΔdefineInjector, InjectableType, InjectorType} from './interface/defs';
export {forwardRef, resolveForwardRef, ForwardRefFn} from './forward_ref';
export {Injectable, InjectableDecorator, InjectableProvider} from './injectable';
export {Injector} from './injector';
-export {ɵɵinject, inject, INJECTOR} from './injector_compatibility';
+export {Δinject, inject, INJECTOR} from './injector_compatibility';
export {ReflectiveInjector} from './reflective_injector';
export {StaticProvider, ValueProvider, ConstructorSansProvider, ExistingProvider, FactoryProvider, Provider, TypeProvider, ClassProvider} from './interface/provider';
export {ResolvedReflectiveFactory, ResolvedReflectiveProvider} from './reflective_provider';
diff --git a/packages/core/src/di/injectable.ts b/packages/core/src/di/injectable.ts
index 19767f6f4b..784c9b72a8 100644
--- a/packages/core/src/di/injectable.ts
+++ b/packages/core/src/di/injectable.ts
@@ -9,7 +9,7 @@
import {Type} from '../interface/type';
import {TypeDecorator, makeDecorator} from '../util/decorators';
-import {InjectableType, getInjectableDef, ɵɵInjectableDef, ɵɵdefineInjectable} from './interface/defs';
+import {InjectableType, getInjectableDef, ΔInjectableDef, ΔdefineInjectable} from './interface/defs';
import {ClassSansProvider, ConstructorSansProvider, ExistingSansProvider, FactorySansProvider, StaticClassSansProvider, ValueSansProvider} from './interface/provider';
import {compileInjectable as render3CompileInjectable} from './jit/injectable';
import {convertInjectableProviderToFactory} from './util';
@@ -80,7 +80,7 @@ export const Injectable: InjectableDecorator = makeDecorator(
*
* @publicApi
*/
-export interface InjectableType extends Type { ngInjectableDef: ɵɵInjectableDef; }
+export interface InjectableType extends Type { ngInjectableDef: ΔInjectableDef; }
/**
* Supports @Injectable() in JIT mode for Render2.
@@ -89,7 +89,7 @@ function render2CompileInjectable(
injectableType: InjectableType,
options: {providedIn?: Type| 'root' | null} & InjectableProvider): void {
if (options && options.providedIn !== undefined && !getInjectableDef(injectableType)) {
- injectableType.ngInjectableDef = ɵɵdefineInjectable({
+ injectableType.ngInjectableDef = ΔdefineInjectable({
providedIn: options.providedIn,
factory: convertInjectableProviderToFactory(injectableType, options),
});
diff --git a/packages/core/src/di/injection_token.ts b/packages/core/src/di/injection_token.ts
index ac16ca838a..496d6bb765 100644
--- a/packages/core/src/di/injection_token.ts
+++ b/packages/core/src/di/injection_token.ts
@@ -8,7 +8,7 @@
import {Type} from '../interface/type';
-import {ɵɵdefineInjectable} from './interface/defs';
+import {ΔdefineInjectable} from './interface/defs';
/**
* Creates a token that can be used in a DI Provider.
@@ -67,7 +67,7 @@ export class InjectionToken {
// We are using it to assign `-1` which is used to identify `Injector`.
(this as any).__NG_ELEMENT_ID__ = options;
} else if (options !== undefined) {
- this.ngInjectableDef = ɵɵdefineInjectable({
+ this.ngInjectableDef = ΔdefineInjectable({
providedIn: options.providedIn || 'root',
factory: options.factory,
});
diff --git a/packages/core/src/di/injector.ts b/packages/core/src/di/injector.ts
index bac0d1fe20..cff4e614e7 100644
--- a/packages/core/src/di/injector.ts
+++ b/packages/core/src/di/injector.ts
@@ -11,8 +11,8 @@ import {stringify} from '../util/stringify';
import {resolveForwardRef} from './forward_ref';
import {InjectionToken} from './injection_token';
-import {INJECTOR, NG_TEMP_TOKEN_PATH, NullInjector, THROW_IF_NOT_FOUND, USE_VALUE, catchInjectorError, formatError, ɵɵinject} from './injector_compatibility';
-import {ɵɵdefineInjectable} from './interface/defs';
+import {INJECTOR, NG_TEMP_TOKEN_PATH, NullInjector, THROW_IF_NOT_FOUND, USE_VALUE, catchInjectorError, formatError, Δinject} from './injector_compatibility';
+import {ΔdefineInjectable} from './interface/defs';
import {InjectFlags} from './interface/injector';
import {ConstructorProvider, ExistingProvider, FactoryProvider, StaticClassProvider, StaticProvider, ValueProvider} from './interface/provider';
import {Inject, Optional, Self, SkipSelf} from './metadata';
@@ -88,9 +88,9 @@ export abstract class Injector {
}
/** @nocollapse */
- static ngInjectableDef = ɵɵdefineInjectable({
+ static ngInjectableDef = ΔdefineInjectable({
providedIn: 'any' as any,
- factory: () => ɵɵinject(INJECTOR),
+ factory: () => Δinject(INJECTOR),
});
/**
diff --git a/packages/core/src/di/injector_compatibility.ts b/packages/core/src/di/injector_compatibility.ts
index 83cc2638ab..1b1b291738 100644
--- a/packages/core/src/di/injector_compatibility.ts
+++ b/packages/core/src/di/injector_compatibility.ts
@@ -13,7 +13,7 @@ import {stringify} from '../util/stringify';
import {resolveForwardRef} from './forward_ref';
import {InjectionToken} from './injection_token';
import {Injector} from './injector';
-import {getInjectableDef, ɵɵInjectableDef} from './interface/defs';
+import {getInjectableDef, ΔInjectableDef} from './interface/defs';
import {InjectFlags} from './interface/injector';
import {ValueProvider} from './interface/provider';
import {Inject, Optional, Self, SkipSelf} from './metadata';
@@ -107,10 +107,9 @@ export function injectInjectorOnly(
* @see inject
* @codeGenApi
*/
-export function ɵɵinject(token: Type| InjectionToken): T;
-export function ɵɵinject(token: Type| InjectionToken, flags?: InjectFlags): T|null;
-export function ɵɵinject(token: Type| InjectionToken, flags = InjectFlags.Default): T|
- null {
+export function Δinject(token: Type| InjectionToken): T;
+export function Δinject(token: Type| InjectionToken, flags?: InjectFlags): T|null;
+export function Δinject(token: Type| InjectionToken, flags = InjectFlags.Default): T|null {
return (_injectImplementation || injectInjectorOnly)(token, flags);
}
@@ -138,7 +137,7 @@ export function ɵɵinject(token: Type| InjectionToken, flags = InjectF
*
* @publicApi
*/
-export const inject = ɵɵinject;
+export const inject = Δinject;
/**
* Injects `root` tokens in limp mode.
@@ -149,7 +148,7 @@ export const inject = ɵɵinject;
*/
export function injectRootLimpMode(
token: Type| InjectionToken, notFoundValue: T | undefined, flags: InjectFlags): T|null {
- const injectableDef: ɵɵInjectableDef|null = getInjectableDef(token);
+ const injectableDef: ΔInjectableDef|null = getInjectableDef(token);
if (injectableDef && injectableDef.providedIn == 'root') {
return injectableDef.value === undefined ? injectableDef.value = injectableDef.factory() :
injectableDef.value;
@@ -186,9 +185,9 @@ export function injectArgs(types: (Type| InjectionToken| any[])[]): an
}
}
- args.push(ɵɵinject(type !, flags));
+ args.push(Δinject(type !, flags));
} else {
- args.push(ɵɵinject(arg));
+ args.push(Δinject(arg));
}
}
return args;
diff --git a/packages/core/src/di/interface/defs.ts b/packages/core/src/di/interface/defs.ts
index dd00972be8..593e16a06b 100644
--- a/packages/core/src/di/interface/defs.ts
+++ b/packages/core/src/di/interface/defs.ts
@@ -26,7 +26,7 @@ import {ClassProvider, ConstructorProvider, ExistingProvider, FactoryProvider, S
*
* @publicApi
*/
-export interface ɵɵInjectableDef {
+export interface ΔInjectableDef {
/**
* Specifies that the given type belongs to a particular injector:
* - `InjectorType` such as `NgModule`,
@@ -60,7 +60,7 @@ export interface ɵɵInjectableDef {
*
* @publicApi
*/
-export interface ɵɵInjectorDef {
+export interface ΔInjectorDef {
factory: () => T;
// TODO(alxhub): Narrow down the type here once decorators properly change the return type of the
@@ -131,21 +131,21 @@ export interface InjectorTypeWithProviders {
*
* @publicApi
*/
-export function ɵɵdefineInjectable(opts: {
+export function ΔdefineInjectable(opts: {
providedIn?: Type| 'root' | 'any' | null,
factory: () => T,
}): never {
return ({
providedIn: opts.providedIn as any || null, factory: opts.factory, value: undefined,
- } as ɵɵInjectableDef) as never;
+ } as ΔInjectableDef) as never;
}
/**
* @deprecated in v8, delete after v10. This API should be used only be generated code, and that
- * code should now use ɵɵdefineInjectable instead.
+ * code should now use ΔdefineInjectable instead.
* @publicApi
*/
-export const defineInjectable = ɵɵdefineInjectable;
+export const defineInjectable = ΔdefineInjectable;
/**
* Construct an `InjectorDef` which configures an injector.
@@ -167,11 +167,11 @@ export const defineInjectable = ɵɵdefineInjectable;
*
* @publicApi
*/
-export function ɵɵdefineInjector(options: {factory: () => any, providers?: any[], imports?: any[]}):
+export function ΔdefineInjector(options: {factory: () => any, providers?: any[], imports?: any[]}):
never {
return ({
factory: options.factory, providers: options.providers || [], imports: options.imports || [],
- } as ɵɵInjectorDef) as never;
+ } as ΔInjectorDef) as never;
}
/**
@@ -179,7 +179,7 @@ export function ɵɵdefineInjector(options: {factory: () => any, providers?: any
*
* @param type type which may have `ngInjectableDef`
*/
-export function getInjectableDef(type: any): ɵɵInjectableDef|null {
+export function getInjectableDef(type: any): ΔInjectableDef|null {
return type && type.hasOwnProperty(NG_INJECTABLE_DEF) ? (type as any)[NG_INJECTABLE_DEF] : null;
}
@@ -188,7 +188,7 @@ export function getInjectableDef(type: any): ɵɵInjectableDef|null {
*
* @param type type which may have `ngInjectorDef`
*/
-export function getInjectorDef(type: any): ɵɵInjectorDef|null {
+export function getInjectorDef(type: any): ΔInjectorDef|null {
return type && type.hasOwnProperty(NG_INJECTOR_DEF) ? (type as any)[NG_INJECTOR_DEF] : null;
}
diff --git a/packages/core/src/di/jit/environment.ts b/packages/core/src/di/jit/environment.ts
index 9bd8141b10..a702bb6943 100644
--- a/packages/core/src/di/jit/environment.ts
+++ b/packages/core/src/di/jit/environment.ts
@@ -7,8 +7,8 @@
*/
import {Type} from '../../interface/type';
-import {ɵɵinject} from '../injector_compatibility';
-import {getInjectableDef, getInjectorDef, ɵɵdefineInjectable, ɵɵdefineInjector} from '../interface/defs';
+import {Δinject} from '../injector_compatibility';
+import {getInjectableDef, getInjectorDef, ΔdefineInjectable, ΔdefineInjector} from '../interface/defs';
@@ -18,10 +18,10 @@ import {getInjectableDef, getInjectorDef, ɵɵdefineInjectable, ɵɵdefineInject
* This should be kept up to date with the public exports of @angular/core.
*/
export const angularCoreDiEnv: {[name: string]: Function} = {
- 'ɵɵdefineInjectable': ɵɵdefineInjectable,
- 'ɵɵdefineInjector': ɵɵdefineInjector,
- 'ɵɵinject': ɵɵinject,
- 'ɵɵgetFactoryOf': getFactoryOf,
+ 'ΔdefineInjectable': ΔdefineInjectable,
+ 'ΔdefineInjector': ΔdefineInjector,
+ 'Δinject': Δinject,
+ 'ΔgetFactoryOf': getFactoryOf,
};
function getFactoryOf(type: Type): ((type: Type| null) => T)|null {
diff --git a/packages/core/src/di/r3_injector.ts b/packages/core/src/di/r3_injector.ts
index 670c9902c5..5a61c08c88 100644
--- a/packages/core/src/di/r3_injector.ts
+++ b/packages/core/src/di/r3_injector.ts
@@ -14,8 +14,8 @@ import {stringify} from '../util/stringify';
import {resolveForwardRef} from './forward_ref';
import {InjectionToken} from './injection_token';
import {Injector} from './injector';
-import {INJECTOR, NG_TEMP_TOKEN_PATH, NullInjector, THROW_IF_NOT_FOUND, USE_VALUE, catchInjectorError, injectArgs, setCurrentInjector, ɵɵinject} from './injector_compatibility';
-import {InjectableType, InjectorType, InjectorTypeWithProviders, getInjectableDef, getInjectorDef, ɵɵInjectableDef} from './interface/defs';
+import {INJECTOR, NG_TEMP_TOKEN_PATH, NullInjector, THROW_IF_NOT_FOUND, USE_VALUE, catchInjectorError, injectArgs, setCurrentInjector, Δinject} from './injector_compatibility';
+import {InjectableType, InjectorType, InjectorTypeWithProviders, getInjectableDef, getInjectorDef, ΔInjectableDef} from './interface/defs';
import {InjectFlags} from './interface/injector';
import {ClassProvider, ConstructorProvider, ExistingProvider, FactoryProvider, StaticClassProvider, StaticProvider, TypeProvider, ValueProvider} from './interface/provider';
import {APP_ROOT} from './scope';
@@ -366,7 +366,7 @@ export class R3Injector {
return record.value as T;
}
- private injectableDefInScope(def: ɵɵInjectableDef): boolean {
+ private injectableDefInScope(def: ΔInjectableDef): boolean {
if (!def.providedIn) {
return false;
} else if (typeof def.providedIn === 'string') {
@@ -423,7 +423,7 @@ export function providerToFactory(
if (isValueProvider(provider)) {
factory = () => resolveForwardRef(provider.useValue);
} else if (isExistingProvider(provider)) {
- factory = () => ɵɵinject(resolveForwardRef(provider.useExisting));
+ factory = () => Δinject(resolveForwardRef(provider.useExisting));
} else if (isFactoryProvider(provider)) {
factory = () => provider.useFactory(...injectArgs(provider.deps || []));
} else {
diff --git a/packages/core/src/di/util.ts b/packages/core/src/di/util.ts
index ccc78def56..d5e5830ad2 100644
--- a/packages/core/src/di/util.ts
+++ b/packages/core/src/di/util.ts
@@ -10,7 +10,7 @@ import {Type} from '../interface/type';
import {ReflectionCapabilities} from '../reflection/reflection_capabilities';
import {getClosureSafeProperty} from '../util/property';
-import {injectArgs, ɵɵinject} from './injector_compatibility';
+import {injectArgs, Δinject} from './injector_compatibility';
import {ClassSansProvider, ConstructorSansProvider, ExistingSansProvider, FactorySansProvider, StaticClassSansProvider, ValueProvider, ValueSansProvider} from './interface/provider';
const USE_VALUE =
@@ -32,7 +32,7 @@ export function convertInjectableProviderToFactory(
return () => valueProvider.useValue;
} else if ((provider as ExistingSansProvider).useExisting) {
const existingProvider = (provider as ExistingSansProvider);
- return () => ɵɵinject(existingProvider.useExisting);
+ return () => Δinject(existingProvider.useExisting);
} else if ((provider as FactorySansProvider).useFactory) {
const factoryProvider = (provider as FactorySansProvider);
return () => factoryProvider.useFactory(...injectArgs(factoryProvider.deps || EMPTY_ARRAY));
diff --git a/packages/core/src/metadata/ng_module.ts b/packages/core/src/metadata/ng_module.ts
index 0b7638f0ad..b4fcb65be5 100644
--- a/packages/core/src/metadata/ng_module.ts
+++ b/packages/core/src/metadata/ng_module.ts
@@ -7,7 +7,7 @@
*/
import {ApplicationRef} from '../application_ref';
-import {InjectorType, ɵɵdefineInjector} from '../di/interface/defs';
+import {InjectorType, ΔdefineInjector} from '../di/interface/defs';
import {Provider} from '../di/interface/provider';
import {convertInjectableProviderToFactory} from '../di/util';
import {Type} from '../interface/type';
@@ -35,7 +35,7 @@ export interface NgModuleTransitiveScopes {
/**
* @publicApi
*/
-export type ɵɵNgModuleDefWithMeta = NgModuleDef;
+export type ΔNgModuleDefWithMeta = NgModuleDef;
/**
* Runtime link information for NgModules.
@@ -43,7 +43,7 @@ export type ɵɵNgModuleDefWithMeta = NgModul
* This is the internal data structure used by the runtime to assemble components, directives,
* pipes, and injectors.
*
- * NOTE: Always use `ɵɵdefineNgModule` function to create this object,
+ * NOTE: Always use `ΔdefineNgModule` function to create this object,
* never create the object directly since the shape of this object
* can change between versions.
*/
@@ -350,7 +350,7 @@ function preR3NgModuleCompile(moduleType: InjectorType, metadata: NgModule)
imports = [...imports, metadata.exports];
}
- moduleType.ngInjectorDef = ɵɵdefineInjector({
+ moduleType.ngInjectorDef = ΔdefineInjector({
factory: convertInjectableProviderToFactory(moduleType, {useClass: moduleType}),
providers: metadata && metadata.providers,
imports: imports,
diff --git a/packages/core/src/r3_symbols.ts b/packages/core/src/r3_symbols.ts
index 6f8a80bbdb..073cf4f9a5 100644
--- a/packages/core/src/r3_symbols.ts
+++ b/packages/core/src/r3_symbols.ts
@@ -21,10 +21,10 @@
* The below symbols are used for @Injectable and @NgModule compilation.
*/
-export {ɵɵinject} from './di/injector_compatibility';
-export {ɵɵInjectableDef, ɵɵInjectorDef, ɵɵdefineInjectable, ɵɵdefineInjector} from './di/interface/defs';
-export {NgModuleDef, ɵɵNgModuleDefWithMeta} from './metadata/ng_module';
-export {ɵɵdefineNgModule} from './render3/definition';
+export {Δinject} from './di/injector_compatibility';
+export {ΔInjectableDef, ΔInjectorDef, ΔdefineInjectable, ΔdefineInjector} from './di/interface/defs';
+export {NgModuleDef, ΔNgModuleDefWithMeta} from './metadata/ng_module';
+export {ΔdefineNgModule} from './render3/definition';
export {setClassMetadata} from './render3/metadata';
export {NgModuleFactory} from './render3/ng_module_ref';
diff --git a/packages/core/src/render3/CODE_GEN_API.md b/packages/core/src/render3/CODE_GEN_API.md
index 359ae0937f..dc7fcba617 100644
--- a/packages/core/src/render3/CODE_GEN_API.md
+++ b/packages/core/src/render3/CODE_GEN_API.md
@@ -1,11 +1,11 @@
# Code Gen API
-### Prefix ɵɵ
+### Prefix Δ
-Ivy exports a number of functions prefixed with `ɵɵ`, for example `ɵɵelementStart`, or `ɵɵinject`, et al. These functions are part of API required for code generation by the Angular compiler. These functions are called by generated code, and they must be publicly exposed in order to be consumed by this generated code. **They are not meant for developer consumption**. The reason they are prefixed with `ɵɵ` is not only to identify them as different from other functions, but also to make them not show up at the top of IDE code completion in environments such as Visual Studio code.
+Ivy exports a number of functions prefixed with `Δ`, for example `ΔelementStart`, or `Δinject`, et al. These functions are part of API required for code generation by the Angular compiler. These functions are called by generated code, and they must be publicly exposed in order to be consumed by this generated code. **They are not meant for developer consumption**. The reason they are prefixed with `Δ` is not only to identify them as different from other functions, but also to make them not show up at the top of IDE code completion in environments such as Visual Studio code.
### Guidance
-- Do not use `ɵɵ` functions directly. They are meant to be used in generated code.
-- Do not create new `ɵɵ` functions, it's not a convention that Angular consumes, and it is liable to confuse other developers into thinking consuming Angular's `ɵɵ` functions is a good pattern to follow.
+- Do not use `Δ` functions directly. They are meant to be used in generated code.
+- Do not create new `Δ` functions, it's not a convention that Angular consumes, and it is liable to confuse other developers into thinking consuming Angular's `Δ` functions is a good pattern to follow.
diff --git a/packages/core/src/render3/STATUS.md b/packages/core/src/render3/STATUS.md
index c2648c11c5..c26cece2d1 100644
--- a/packages/core/src/render3/STATUS.md
+++ b/packages/core/src/render3/STATUS.md
@@ -10,8 +10,8 @@ We currently expect Ivy to remain behind the flag until it's feature complete an
The work can be divided into three categories:
- `@angular/compiler-cli`: TypeScript transformer pipeline which includes two command line tools:
- - `ngtsc`: (Angular TypeScript Compiler) Angular compiler which strips out `@Component` (and friends) and replaces it with `ɵɵdefineComponent` (and friends).
- - `ngcc`: (Angular Compatibility Compiler) NPM upgrade compiler which reads the `STORING_METADATA_IN_D.TS.json` files and `.js` files and adds `ɵɵdefineComponent` (and friends) into the `node_module`. This in effect converts a pre-ivy module into ivy module.
+ - `ngtsc`: (Angular TypeScript Compiler) Angular compiler which strips out `@Component` (and friends) and replaces it with `ΔdefineComponent` (and friends).
+ - `ngcc`: (Angular Compatibility Compiler) NPM upgrade compiler which reads the `STORING_METADATA_IN_D.TS.json` files and `.js` files and adds `ΔdefineComponent` (and friends) into the `node_module`. This in effect converts a pre-ivy module into ivy module.
- `@angular/compiler`: Ivy Compiler which converts decorator into ivy
- `@angular/core`: Decorators which can be patched with `@angular/compiler`.
@@ -20,7 +20,7 @@ The work can be divided into three categories:
### `ngtsc` TSC compiler transformer
TSC transformer which removes and converts `@Pipe`, `@Component`, `@Directive` and `@NgModule`
-to the corresponding `ɵɵdefinePipe`, `ɵɵdefineComponent`, `ɵɵdefineDirective` and `ɵɵdefineInjector`.
+to the corresponding `ΔdefinePipe`, `ΔdefineComponent`, `ΔdefineDirective` and `ΔdefineInjector`.
- ✅ Basic setup of the transformer into `tsc`
- ✅ Can read STORING_METADATA_IN_D.TS from `.d.ts` (see: [STORING_METADATA_IN_D.TS.md](./STORING_METADATA_IN_D.TS.md))
@@ -40,19 +40,19 @@ A tool which "upgrades" `node_module` compiled with non-ivy `ngc` into ivy compl
## `@angular/compiler` changes
-- ✅ Component compilation: Translates `@Component` => `ɵɵdefineComponent`
+- ✅ Component compilation: Translates `@Component` => `ΔdefineComponent`
- ✅ `TemplateCompiler` (current known as `ViewCompiler`)
- ✅ `StyleCompiler`
-- ✅ `PipeCompiler`: Translates `@Pipe` => `ɵɵdefinePipe`
-- ✅ `DirectiveCompiler`: Translates `@Directive` => `ɵɵdefineDirective`
-- ✅ `InjectableCompiler`: Translates `@Injectable` => `ɵɵdefineInjectable`
-- ✅ `NgModuleCompiler`: Translates `@NgModule` => `ɵɵdefineInjector` (and `ɵɵdefineNgModule` only in jit)
+- ✅ `PipeCompiler`: Translates `@Pipe` => `ΔdefinePipe`
+- ✅ `DirectiveCompiler`: Translates `@Directive` => `ΔdefineDirective`
+- ✅ `InjectableCompiler`: Translates `@Injectable` => `ΔdefineInjectable`
+- ✅ `NgModuleCompiler`: Translates `@NgModule` => `ΔdefineInjector` (and `ΔdefineNgModule` only in jit)
- ❌ Documentation
## `@angular/core` changes
-The goal is for the `@Component` (and friends) to be the compiler of template. Since decorators are functions which execute during parsing of the `.js` file, the decorator can compile the template into Ivy. The AoT compiler's job is to remove the `@Component` and replace it with call to `ɵɵdefineComponent`.
+The goal is for the `@Component` (and friends) to be the compiler of template. Since decorators are functions which execute during parsing of the `.js` file, the decorator can compile the template into Ivy. The AoT compiler's job is to remove the `@Component` and replace it with call to `ΔdefineComponent`.
- ✅ `@angular/compiler` can patch itself onto:
- ✅ `@Injectable`
@@ -70,13 +70,13 @@ The goal is for the `@Component` (and friends) to be the compiler of template. S
## Decorators
| Annotation | `defineXXX()` | Run time | Spec | Compiler |
| -------------------- | ------------------------------ | ------- | -------- | -------- |
-| `@Component` | ✅ `ɵɵdefineComponent()` | ✅ | ✅ | ✅ |
-| `@Directive` | ✅ `ɵɵdefineDirective()` | ✅ | ✅ | ✅ |
-| `@Directive` | ✅ `ɵɵdefineBase()` | ✅ | ✅ | ✅ |
-| `@Pipe` | ✅ `ɵɵdefinePipe()` | ✅ | ✅ | ✅ |
-| `@Injectable` | ✅ `ɵɵdefineInjectable()` | ✅ | ✅ | ✅ |
-| `@NgModule` | ✅ `ɵɵdefineInjector()` | ✅ | ✅ | ✅ |
-| `@ConfigureInjector` | ✅ `ɵɵdefineInjector()` | ❌ | ❌ | ❌ |
+| `@Component` | ✅ `ΔdefineComponent()` | ✅ | ✅ | ✅ |
+| `@Directive` | ✅ `ΔdefineDirective()` | ✅ | ✅ | ✅ |
+| `@Directive` | ✅ `ΔdefineBase()` | ✅ | ✅ | ✅ |
+| `@Pipe` | ✅ `ΔdefinePipe()` | ✅ | ✅ | ✅ |
+| `@Injectable` | ✅ `ΔdefineInjectable()` | ✅ | ✅ | ✅ |
+| `@NgModule` | ✅ `ΔdefineInjector()` | ✅ | ✅ | ✅ |
+| `@ConfigureInjector` | ✅ `ΔdefineInjector()` | ❌ | ❌ | ❌ |
diff --git a/packages/core/src/render3/STORING_METADATA_IN_D.TS.md b/packages/core/src/render3/STORING_METADATA_IN_D.TS.md
index 9b2f9b7517..82690386b2 100644
--- a/packages/core/src/render3/STORING_METADATA_IN_D.TS.md
+++ b/packages/core/src/render3/STORING_METADATA_IN_D.TS.md
@@ -13,7 +13,7 @@ Here is an abbreviated example of breakage of tree-shake-ability.
})
export class TooltipDirective {
// ngtsc generates this:
- static ngDirectiveDef = ɵɵdefineDirective(...);
+ static ngDirectiveDef = ΔdefineDirective(...);
}
@Component({
@@ -22,7 +22,7 @@ export class TooltipDirective {
})
class MyAppComponent {
// ngtsc generates this:
- static ngDirectiveDef = ɵɵdefineComponent({
+ static ngDirectiveDef = ΔdefineComponent({
...
directives: [
// BREAKS TREE-SHAKING!!!
@@ -41,7 +41,7 @@ class MyAppComponent {
})
class MyAppModule {
// ngtsc generates this:
- static ngDirectiveDef = ɵɵdefineNgModule(...);
+ static ngDirectiveDef = ΔdefineNgModule(...);
}
```
diff --git a/packages/core/src/render3/VIEW_DATA.md b/packages/core/src/render3/VIEW_DATA.md
index 4cab860b01..607b6b48c8 100644
--- a/packages/core/src/render3/VIEW_DATA.md
+++ b/packages/core/src/render3/VIEW_DATA.md
@@ -36,18 +36,18 @@ The size of the `CONSTS` section is declared in the property `consts` of the com
})
class MyApp {
- static ngComponentDef = ɵɵdefineComponent({
+ static ngComponentDef = ΔdefineComponent({
...,
consts: 5,
template: function(rf: RenderFlags, ctx: MyApp) {
if (rf & RenderFlags.Create) {
- ɵɵelementStart(0, 'div');
- ɵɵtext(1, 'Hello ');
- ɵɵelementStart(2, 'b');
- ɵɵtext(3, 'World');
- ɵɵelementEnd();
- ɵɵtext(4, '!');
- ɵɵelementEnd();
+ ΔelementStart(0, 'div');
+ Δtext(1, 'Hello ');
+ ΔelementStart(2, 'b');
+ Δtext(3, 'World');
+ ΔelementEnd();
+ Δtext(4, '!');
+ ΔelementEnd();
}
...
}
@@ -87,19 +87,19 @@ The size of the `VARS `section is declared in the property `vars` of the compone
class MyApp {
name = 'World';
- static ngComponentDef = ɵɵdefineComponent({
+ static ngComponentDef = ΔdefineComponent({
...,
consts: 2, // Two DOM Elements.
vars: 2, // Two bindings.
template: function(rf: RenderFlags, ctx: MyApp) {
if (rf & RenderFlags.Create) {
- ɵɵelementStart(0, 'div');
- ɵɵtext(1);
- ɵɵelementEnd();
+ ΔelementStart(0, 'div');
+ Δtext(1);
+ ΔelementEnd();
}
if (rf & RenderFlags.Update) {
- ɵɵelementProperty(0, 'title', ɵɵbind(ctx.name));
- ɵɵtextBinding(1, ɵɵinterpolation1('Hello ', ctx.name, '!'));
+ ΔelementProperty(0, 'title', Δbind(ctx.name));
+ ΔtextBinding(1, Δinterpolation1('Hello ', ctx.name, '!'));
}
...
}
@@ -139,12 +139,12 @@ Examples include:
})
class MyApp {
- static ngComponentDef = ɵɵdefineComponent({
+ static ngComponentDef = ΔdefineComponent({
...,
consts: 1,
template: function(rf: RenderFlags, ctx: MyApp) {
if (rf & RenderFlags.Create) {
- ɵɵelement(0, 'child', ['tooltip', null]);
+ Δelement(0, 'child', ['tooltip', null]);
}
...
},
@@ -159,7 +159,7 @@ class MyApp {
})
class Child {
@HostBinding('tooltip') hostTitle = 'Hello World!';
- static ngComponentDef = ɵɵdefineComponent({
+ static ngComponentDef = ΔdefineComponent({
...
hostVars: 1
});
@@ -171,7 +171,7 @@ class Child {
})
class Tooltip {
@HostBinding('title') hostTitle = 'greeting';
- static ngDirectiveDef = ɵɵdefineDirective({
+ static ngDirectiveDef = ΔdefineDirective({
...
hostVars: 1
});
@@ -273,12 +273,12 @@ Injection tokens are sorted into three sections:
})
class MyApp {
- static ngComponentDef = ɵɵdefineComponent({
+ static ngComponentDef = ΔdefineComponent({
...,
consts: 1,
template: function(rf: RenderFlags, ctx: MyApp) {
if (rf & RenderFlags.Create) {
- ɵɵelement(0, 'child');
+ Δelement(0, 'child');
}
...
},
@@ -301,7 +301,7 @@ class MyApp {
})
class Child {
construction(injector: Injector) {}
- static ngComponentDef = ɵɵdefineComponent({
+ static ngComponentDef = ΔdefineComponent({
...
features: [
ProvidesFeature(
diff --git a/packages/core/src/render3/component_ref.ts b/packages/core/src/render3/component_ref.ts
index 77fca80daf..979f5aa113 100644
--- a/packages/core/src/render3/component_ref.ts
+++ b/packages/core/src/render3/component_ref.ts
@@ -9,7 +9,7 @@
import {ChangeDetectorRef as ViewEngine_ChangeDetectorRef} from '../change_detection/change_detector_ref';
import {InjectionToken} from '../di/injection_token';
import {Injector} from '../di/injector';
-import {ɵɵinject} from '../di/injector_compatibility';
+import {Δinject} from '../di/injector_compatibility';
import {InjectFlags} from '../di/interface/injector';
import {Type} from '../interface/type';
import {ComponentFactory as viewEngine_ComponentFactory, ComponentRef as viewEngine_ComponentRef} from '../linker/component_factory';
@@ -66,7 +66,7 @@ function toRefArray(map: {[key: string]: string}): {propName: string; templateNa
*/
export const ROOT_CONTEXT = new InjectionToken(
'ROOT_CONTEXT_TOKEN',
- {providedIn: 'root', factory: () => createRootContext(ɵɵinject(SCHEDULER))});
+ {providedIn: 'root', factory: () => createRootContext(Δinject(SCHEDULER))});
/**
* A change detection scheduler token for {@link RootContext}. This token is the default value used
diff --git a/packages/core/src/render3/definition.ts b/packages/core/src/render3/definition.ts
index a5eb841056..7d08c94d23 100644
--- a/packages/core/src/render3/definition.ts
+++ b/packages/core/src/render3/definition.ts
@@ -9,7 +9,7 @@
import '../util/ng_dev_mode';
import {ChangeDetectionStrategy} from '../change_detection/constants';
-import {NG_INJECTABLE_DEF, ɵɵdefineInjectable} from '../di/interface/defs';
+import {NG_INJECTABLE_DEF, ΔdefineInjectable} from '../di/interface/defs';
import {Mutable, Type} from '../interface/type';
import {NgModuleDef} from '../metadata/ng_module';
import {SchemaMetadata} from '../metadata/schema';
@@ -19,7 +19,7 @@ import {stringify} from '../util/stringify';
import {EMPTY_ARRAY, EMPTY_OBJ} from './empty';
import {NG_BASE_DEF, NG_COMPONENT_DEF, NG_DIRECTIVE_DEF, NG_MODULE_DEF, NG_PIPE_DEF} from './fields';
-import {ComponentDef, ComponentDefFeature, ComponentTemplate, ComponentType, ContentQueriesFunction, DirectiveDef, DirectiveDefFeature, DirectiveType, DirectiveTypesOrFactory, FactoryFn, HostBindingsFunction, PipeDef, PipeType, PipeTypesOrFactory, ViewQueriesFunction, ɵɵBaseDef} from './interfaces/definition';
+import {ComponentDef, ComponentDefFeature, ComponentTemplate, ComponentType, ContentQueriesFunction, DirectiveDef, DirectiveDefFeature, DirectiveType, DirectiveTypesOrFactory, FactoryFn, HostBindingsFunction, PipeDef, PipeType, PipeTypesOrFactory, ViewQueriesFunction, ΔBaseDef} from './interfaces/definition';
// while SelectorFlags is unused here, it's required so that types don't get resolved lazily
// see: https://github.com/Microsoft/web-build-tools/issues/1050
import {CssSelectorList, SelectorFlags} from './interfaces/projection';
@@ -42,7 +42,7 @@ let _renderCompCount = 0;
* ```
* @codeGenApi
*/
-export function ɵɵdefineComponent(componentDefinition: {
+export function ΔdefineComponent(componentDefinition: {
/**
* Directive type, needed to configure the injector.
*/
@@ -308,7 +308,7 @@ export function ɵɵdefineComponent(componentDefinition: {
// be retrieved through the node injector, so this isn't a problem.
if (!type.hasOwnProperty(NG_INJECTABLE_DEF)) {
(type as any)[NG_INJECTABLE_DEF] =
- ɵɵdefineInjectable({factory: componentDefinition.factory as() => T});
+ ΔdefineInjectable({factory: componentDefinition.factory as() => T});
}
}) as never;
@@ -318,7 +318,7 @@ export function ɵɵdefineComponent(componentDefinition: {
/**
* @codeGenApi
*/
-export function ɵɵsetComponentScope(
+export function ΔsetComponentScope(
type: ComponentType, directives: Type[], pipes: Type[]): void {
const def = (type.ngComponentDef as ComponentDef);
def.directiveDefs = () => directives.map(extractDirectiveDef);
@@ -345,7 +345,7 @@ export function extractPipeDef(type: PipeType): PipeDef {
/**
* @codeGenApi
*/
-export function ɵɵdefineNgModule(def: {
+export function ΔdefineNgModule(def: {
/** Token representing the module. Used by DI. */
type: T;
@@ -393,7 +393,7 @@ export function ɵɵdefineNgModule(def: {
*
* @codeGenApi
*/
-export function ɵɵsetNgModuleScope(type: any, scope: {
+export function ΔsetNgModuleScope(type: any, scope: {
/** List of components, directives, and pipes declared by this module. */
declarations?: Type[] | (() => Type[]);
@@ -497,7 +497,7 @@ function invertObject(
* # Example
* ```ts
* class ShouldBeInherited {
- * static ngBaseDef = ɵɵdefineBase({
+ * static ngBaseDef = ΔdefineBase({
* ...
* })
* }
@@ -507,7 +507,7 @@ function invertObject(
*
* @codeGenApi
*/
-export function ɵɵdefineBase(baseDefinition: {
+export function ΔdefineBase(baseDefinition: {
/**
* A map of input names.
*
@@ -580,7 +580,7 @@ export function ɵɵdefineBase(baseDefinition: {
* Function executed by the parent template to allow children to apply host bindings.
*/
hostBindings?: HostBindingsFunction;
-}): ɵɵBaseDef {
+}): ΔBaseDef {
const declaredInputs: {[P in keyof T]: string} = {} as any;
return {
inputs: invertObject(baseDefinition.inputs as any, declaredInputs),
@@ -600,7 +600,7 @@ export function ɵɵdefineBase(baseDefinition: {
* class MyDirective {
* // Generated by Angular Template Compiler
* // [Symbol] syntax will not be supported by TypeScript until v2.7
- * static ngDirectiveDef = ɵɵdefineDirective({
+ * static ngDirectiveDef = ΔdefineDirective({
* ...
* });
* }
@@ -608,7 +608,7 @@ export function ɵɵdefineBase(baseDefinition: {
*
* @codeGenApi
*/
-export const ɵɵdefineDirective = ɵɵdefineComponent as any as(directiveDefinition: {
+export const ΔdefineDirective = ΔdefineComponent as any as(directiveDefinition: {
/**
* Directive type, needed to configure the injector.
*/
@@ -726,7 +726,7 @@ export const ɵɵdefineDirective = ɵɵdefineComponent as any as(directiveDef
*
* @codeGenApi
*/
-export function ɵɵdefinePipe(pipeDef: {
+export function ΔdefinePipe(pipeDef: {
/** Name of the pipe. Used for matching pipes in template to pipe defs. */
name: string,
@@ -765,7 +765,7 @@ export function getPipeDef(type: any): PipeDef|null {
return (type as any)[NG_PIPE_DEF] || null;
}
-export function getBaseDef(type: any): ɵɵBaseDef|null {
+export function getBaseDef(type: any): ΔBaseDef|null {
return (type as any)[NG_BASE_DEF] || null;
}
diff --git a/packages/core/src/render3/di.ts b/packages/core/src/render3/di.ts
index c8507b871a..6302c26ea3 100644
--- a/packages/core/src/render3/di.ts
+++ b/packages/core/src/render3/di.ts
@@ -637,7 +637,7 @@ export class NodeInjector implements Injector {
/**
* @codeGenApi
*/
-export function ɵɵgetFactoryOf(type: Type): ((type: Type| null) => T)|null {
+export function ΔgetFactoryOf(type: Type): ((type: Type| null) => T)|null {
const typeAny = type as any;
const def = getComponentDef(typeAny) || getDirectiveDef(typeAny) ||
getPipeDef(typeAny) || getInjectableDef(typeAny) || getInjectorDef(typeAny);
@@ -650,9 +650,9 @@ export function ɵɵgetFactoryOf(type: Type): ((type: Type| null) =>
/**
* @codeGenApi
*/
-export function ɵɵgetInheritedFactory(type: Type): (type: Type) => T {
+export function ΔgetInheritedFactory(type: Type): (type: Type) => T {
const proto = Object.getPrototypeOf(type.prototype).constructor as Type;
- const factory = ɵɵgetFactoryOf(proto);
+ const factory = ΔgetFactoryOf(proto);
if (factory !== null) {
return factory;
} else {
diff --git a/packages/core/src/render3/di_setup.ts b/packages/core/src/render3/di_setup.ts
index 3dfb9bbb70..9d177153d4 100644
--- a/packages/core/src/render3/di_setup.ts
+++ b/packages/core/src/render3/di_setup.ts
@@ -12,7 +12,7 @@ import {ClassProvider, Provider} from '../di/interface/provider';
import {isClassProvider, isTypeProvider, providerToFactory} from '../di/r3_injector';
import {diPublicInInjector, getNodeInjectable, getOrCreateNodeInjectorForNode} from './di';
-import {ɵɵdirectiveInject} from './instructions/all';
+import {ΔdirectiveInject} from './instructions/all';
import {DirectiveDef} from './interfaces/definition';
import {NodeInjectorFactory} from './interfaces/injector';
import {TContainerNode, TElementContainerNode, TElementNode, TNodeProviderIndexes} from './interfaces/node';
@@ -93,7 +93,7 @@ function resolveProvider(
if (isTypeProvider(provider) || !provider.multi) {
// Single provider case: the factory is created and pushed immediately
- const factory = new NodeInjectorFactory(providerFactory, isViewProvider, ɵɵdirectiveInject);
+ const factory = new NodeInjectorFactory(providerFactory, isViewProvider, ΔdirectiveInject);
const existingFactoryIndex = indexOf(
token, tInjectables, isViewProvider ? beginIndex : beginIndex + cptViewProvidersCount,
endIndex);
@@ -255,7 +255,7 @@ function multiFactory(
this: NodeInjectorFactory, _: null, tData: TData, lData: LView, tNode: TElementNode) => any,
index: number, isViewProvider: boolean, isComponent: boolean,
f: () => any): NodeInjectorFactory {
- const factory = new NodeInjectorFactory(factoryFn, isViewProvider, ɵɵdirectiveInject);
+ const factory = new NodeInjectorFactory(factoryFn, isViewProvider, ΔdirectiveInject);
factory.multi = [];
factory.index = index;
factory.componentProviders = 0;
diff --git a/packages/core/src/render3/features/inherit_definition_feature.ts b/packages/core/src/render3/features/inherit_definition_feature.ts
index 441af1e386..a025ab9375 100644
--- a/packages/core/src/render3/features/inherit_definition_feature.ts
+++ b/packages/core/src/render3/features/inherit_definition_feature.ts
@@ -13,7 +13,7 @@ import {ComponentDef, ContentQueriesFunction, DirectiveDef, DirectiveDefFeature,
import {adjustActiveDirectiveSuperClassDepthPosition} from '../state';
import {isComponentDef} from '../util/view_utils';
-import {ɵɵNgOnChangesFeature} from './ng_onchanges_feature';
+import {ΔNgOnChangesFeature} from './ng_onchanges_feature';
function getSuperType(type: Type): Type