diff --git a/packages/compiler-cli/ngcc/test/integration/ngcc_spec.ts b/packages/compiler-cli/ngcc/test/integration/ngcc_spec.ts index e1d0e5bdd0..8212bf9990 100644 --- a/packages/compiler-cli/ngcc/test/integration/ngcc_spec.ts +++ b/packages/compiler-cli/ngcc/test/integration/ngcc_spec.ts @@ -181,7 +181,8 @@ runInEachFileSystem(() => { const jsContents = fs.readFile(_(`/node_modules/test-package/index.js`)).replace(/\s+/g, ' '); expect(jsContents) .toContain( - '/*@__PURE__*/ (function () { ɵngcc0.ɵsetClassMetadata(FooDirective, ' + + '(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ' + + 'ɵngcc0.ɵsetClassMetadata(FooDirective, ' + '[{ type: Directive, args: [{ selector: \'[foo]\' }] }], ' + 'function () { return []; }, ' + '{ bar: [{ type: Input }] }); })();'); diff --git a/packages/compiler-cli/ngcc/test/rendering/renderer_spec.ts b/packages/compiler-cli/ngcc/test/rendering/renderer_spec.ts index 95ad53d675..6b89ea51fe 100644 --- a/packages/compiler-cli/ngcc/test/rendering/renderer_spec.ts +++ b/packages/compiler-cli/ngcc/test/rendering/renderer_spec.ts @@ -254,7 +254,7 @@ A.ɵcmp = ɵngcc0.ɵɵdefineComponent({ type: A, selectors: [["a"]], decls: 1, v const addAdjacentStatementsSpy = testFormatter.addAdjacentStatements as jasmine.Spy; expect(addAdjacentStatementsSpy.calls.first().args[2]).toEqual(`// TRANSPILED -/*@__PURE__*/ (function () { ɵngcc0.ɵsetClassMetadata(A, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(A, [{ type: Component, args: [{ selector: 'a', template: '{{ person!.name }}' }] }], null, null); })();`); @@ -321,7 +321,7 @@ A.ɵdir = ɵngcc0.ɵɵdefineDirective({ type: A, selectors: [["", "a", ""]] });` .toEqual(jasmine.objectContaining( {name: 'A', decorators: [jasmine.objectContaining({name: 'Directive'})]})); expect(addAdjacentStatementsSpy.calls.first().args[2]).toEqual(`// TRANSPILED -/*@__PURE__*/ (function () { ɵngcc0.ɵsetClassMetadata(A, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(A, [{ type: Directive, args: [{ selector: '[a]' }] }], null, null); })();`); @@ -688,7 +688,8 @@ UndecoratedBase.ɵdir = ɵngcc0.ɵɵdefineDirective({ type: UndecoratedBase, vie decorationAnalyses, switchMarkerAnalyses, privateDeclarationsAnalyses); const addAdjacentStatementsSpy = testFormatter.addAdjacentStatements as jasmine.Spy; expect(addAdjacentStatementsSpy.calls.first().args[2]) - .toContain(`/*@__PURE__*/ (function () { ɵngcc0.setClassMetadata(`); + .toContain( + `function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.setClassMetadata(`); const addImportsSpy = testFormatter.addImports as jasmine.Spy; expect(addImportsSpy.calls.first().args[1]).toEqual([ {specifier: './r3_symbols', qualifier: 'ɵngcc0'} @@ -713,7 +714,8 @@ UndecoratedBase.ɵdir = ɵngcc0.ɵɵdefineDirective({ type: UndecoratedBase, vie decorationAnalyses, switchMarkerAnalyses, privateDeclarationsAnalyses); const addAdjacentStatementsSpy = testFormatter.addAdjacentStatements as jasmine.Spy; expect(addAdjacentStatementsSpy.calls.first().args[2]) - .toContain(`/*@__PURE__*/ (function () { setClassMetadata(`); + .toContain( + `function () { (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(`); const addImportsSpy = testFormatter.addImports as jasmine.Spy; expect(addImportsSpy.calls.first().args[1]).toEqual([]); }); diff --git a/packages/compiler-cli/src/ngtsc/annotations/src/metadata.ts b/packages/compiler-cli/src/ngtsc/annotations/src/metadata.ts index 36701e189d..69056e6161 100644 --- a/packages/compiler-cli/src/ngtsc/annotations/src/metadata.ts +++ b/packages/compiler-cli/src/ngtsc/annotations/src/metadata.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Expression, ExternalExpr, FunctionExpr, Identifiers, InvokeFunctionExpr, LiteralArrayExpr, LiteralExpr, literalMap, NONE_TYPE, ReturnStatement, Statement, WrappedNodeExpr} from '@angular/compiler'; +import {devOnlyGuardedExpression, Expression, ExternalExpr, FunctionExpr, Identifiers, InvokeFunctionExpr, LiteralArrayExpr, LiteralExpr, literalMap, NONE_TYPE, ReturnStatement, Statement, WrappedNodeExpr} from '@angular/compiler'; import * as ts from 'typescript'; import {DefaultImportRecorder} from '../../imports'; @@ -17,7 +17,8 @@ import {valueReferenceToExpression, wrapFunctionExpressionsInParens} from './uti /** * Given a class declaration, generate a call to `setClassMetadata` with the Angular metadata - * present on the class or its member fields. + * present on the class or its member fields. An ngDevMode guard is used to allow the call to be + * tree-shaken away, as the `setClassMetadata` invocation is only needed for testing purposes. * * If no such metadata is present, this function returns `null`. Otherwise, the call is returned * as a `Statement` for inclusion along with the class. @@ -93,14 +94,8 @@ export function generateSetClassMetadataCall( metaCtorParameters, new WrappedNodeExpr(metaPropDecorators), ]); - const iifeFn = new FunctionExpr([], [fnCall.toStmt()], NONE_TYPE); - const iife = new InvokeFunctionExpr( - /* fn */ iifeFn, - /* args */[], - /* type */ undefined, - /* sourceSpan */ undefined, - /* pure */ true); - return iife.toStmt(); + const iife = new FunctionExpr([], [devOnlyGuardedExpression(fnCall).toStmt()]); + return iife.callFn([]).toStmt(); } /** diff --git a/packages/compiler-cli/src/ngtsc/annotations/test/metadata_spec.ts b/packages/compiler-cli/src/ngtsc/annotations/test/metadata_spec.ts index 9a09329bad..fe6a5609ab 100644 --- a/packages/compiler-cli/src/ngtsc/annotations/test/metadata_spec.ts +++ b/packages/compiler-cli/src/ngtsc/annotations/test/metadata_spec.ts @@ -24,7 +24,7 @@ runInEachFileSystem(() => { @Component('metadata') class Target {} `); expect(res).toEqual( - `/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Target, [{ type: Component, args: ['metadata'] }], null, null); })();`); + `(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Target, [{ type: Component, args: ['metadata'] }], null, null); })();`); }); it('should convert namespaced decorated class metadata', () => { @@ -34,7 +34,7 @@ runInEachFileSystem(() => { @core.Component('metadata') class Target {} `); expect(res).toEqual( - `/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Target, [{ type: core.Component, args: ['metadata'] }], null, null); })();`); + `(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Target, [{ type: core.Component, args: ['metadata'] }], null, null); })();`); }); it('should convert decorated class constructor parameter metadata', () => { diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/GOLDEN_PARTIAL.js index db38c5464e..16214e17fe 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/GOLDEN_PARTIAL.js @@ -9,7 +9,7 @@ HostBindingComp.ɵfac = function HostBindingComp_Factory(t) { return new (t || H HostBindingComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: HostBindingComp, selector: "host-binding-comp", ngImport: i0, template: { source: ` `, isInline: true }, directives: [{ type: function () { return MyForwardDirective; }, selector: "my-forward-directive" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(HostBindingComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HostBindingComp, [{ type: Component, args: [{ selector: 'host-binding-comp', @@ -22,7 +22,7 @@ class MyForwardDirective { } MyForwardDirective.ɵfac = function MyForwardDirective_Factory(t) { return new (t || MyForwardDirective)(); }; MyForwardDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: MyForwardDirective, selector: "my-forward-directive", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyForwardDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyForwardDirective, [{ type: Directive, args: [{ selector: 'my-forward-directive' }] }], null, null); })(); @@ -31,7 +31,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [HostBindingComp, MyForwardDirective] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [HostBindingComp, MyForwardDirective] }] }], null, null); })(); @@ -60,7 +60,7 @@ HostBindingComp.ɵfac = function HostBindingComp_Factory(t) { return new (t || H HostBindingComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: HostBindingComp, selector: "host-binding-comp", ngImport: i0, template: { source: `
...
`, isInline: true }, pipes: { "my_forward_pipe": function () { return MyForwardPipe; } } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(HostBindingComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HostBindingComp, [{ type: Component, args: [{ selector: 'host-binding-comp', @@ -73,7 +73,7 @@ class MyForwardPipe { } MyForwardPipe.ɵfac = function MyForwardPipe_Factory(t) { return new (t || MyForwardPipe)(); }; MyForwardPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "my_forward_pipe", type: MyForwardPipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyForwardPipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyForwardPipe, [{ type: Pipe, args: [{ name: 'my_forward_pipe' }] }], null, null); })(); @@ -82,7 +82,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [HostBindingComp, MyForwardPipe] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [HostBindingComp, MyForwardPipe] }] }], null, null); })(); @@ -109,7 +109,7 @@ export class SomeDirective { } SomeDirective.ɵfac = function SomeDirective_Factory(t) { return new (t || SomeDirective)(); }; SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SomeDirective, selector: "[some-directive]", exportAs: ["someDir", "otherDir"], ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeDirective, [{ type: Directive, args: [{ selector: '[some-directive]', exportAs: 'someDir, otherDir' }] }], null, null); })(); @@ -118,7 +118,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [SomeDirective] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [SomeDirective] }] }], null, null); })(); @@ -145,7 +145,7 @@ export class AbstractDirective { } AbstractDirective.ɵfac = function AbstractDirective_Factory(t) { return new (t || AbstractDirective)(); }; AbstractDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: AbstractDirective, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AbstractDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AbstractDirective, [{ type: Directive }], null, null); })(); @@ -167,7 +167,7 @@ export class SomeComp { } SomeComp.ɵfac = function SomeComp_Factory(t) { return new (t || SomeComp)(); }; SomeComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: SomeComp, selector: "some-comp", inputs: { prop: "prop", otherProp: "otherProp" }, ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeComp, [{ type: Component, args: [{ selector: 'some-comp', template: '' }] }], null, { prop: [{ @@ -179,7 +179,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "ng-component", ngImport: i0, template: { source: '', isInline: true }, directives: [{ type: SomeComp, selector: "some-comp", inputs: ["prop", "otherProp"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ template: '' }] }], null, null); })(); @@ -188,7 +188,7 @@ export class MyMod { MyMod.ɵmod = i0.ɵɵdefineNgModule({ type: MyMod }); MyMod.ɵinj = i0.ɵɵdefineInjector({ factory: function MyMod_Factory(t) { return new (t || MyMod)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyMod, { declarations: [SomeComp, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyMod, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyMod, [{ type: NgModule, args: [{ declarations: [SomeComp, MyApp] }] }], null, null); })(); @@ -221,7 +221,7 @@ export class SomeComp { } SomeComp.ɵfac = function SomeComp_Factory(t) { return new (t || SomeComp)(); }; SomeComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: SomeComp, selector: "some-comp", inputs: { prop: "prop", otherProp: "otherProp" }, ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeComp, [{ type: Component, args: [{ selector: 'some-comp', template: '' }] }], null, { prop: [{ @@ -233,7 +233,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "ng-component", ngImport: i0, template: { source: '', isInline: true }, directives: [{ type: SomeComp, selector: "some-comp", inputs: ["prop", "otherProp"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ template: '' }] }], null, null); })(); @@ -242,7 +242,7 @@ export class MyMod { MyMod.ɵmod = i0.ɵɵdefineNgModule({ type: MyMod }); MyMod.ɵinj = i0.ɵɵdefineInjector({ factory: function MyMod_Factory(t) { return new (t || MyMod)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyMod, { declarations: [MyApp, SomeComp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyMod, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyMod, [{ type: NgModule, args: [{ declarations: [MyApp, SomeComp] }] }], null, null); })(); @@ -278,7 +278,7 @@ MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: My
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ template: ` @@ -292,7 +292,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyApp] }] }], null, null); })(); @@ -322,7 +322,7 @@ MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: My
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ template: ` @@ -336,7 +336,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyApp] }] }], null, null); })(); @@ -369,7 +369,7 @@ MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: My
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ template: ` @@ -383,7 +383,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyApp] }] }], null, null); })(); @@ -430,7 +430,7 @@ var Comp = /** @class */ (function () { return Comp; }()); export { Comp }; -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Comp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Comp, [{ type: Component, args: [{ template: '', @@ -457,7 +457,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-app", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-app', template: '' }] }], null, null); })(); @@ -466,7 +466,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/GOLDEN_PARTIAL.js index 88c652942e..07193c4f87 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/GOLDEN_PARTIAL.js @@ -7,7 +7,7 @@ export class SimpleComponent { } SimpleComponent.ɵfac = function SimpleComponent_Factory(t) { return new (t || SimpleComponent)(); }; SimpleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: SimpleComponent, selector: "simple", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SimpleComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SimpleComponent, [{ type: Component, args: [{ selector: 'simple', template: '
' }] }], null, null); })(); @@ -17,7 +17,7 @@ ComplexComponent.ɵfac = function ComplexComponent_Factory(t) { return new (t || ComplexComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: ComplexComponent, selector: "complex", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ComplexComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ComplexComponent, [{ type: Component, args: [{ selector: 'complex', @@ -30,7 +30,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: 'content ', isInline: true }, directives: [{ type: SimpleComponent, selector: "simple" }, { type: ComplexComponent, selector: "complex" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', template: 'content ' }] }], null, null); })(); @@ -39,7 +39,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [SimpleComponent, ComplexComponent, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [SimpleComponent, ComplexComponent, MyApp] }] }], null, null); })(); @@ -78,7 +78,7 @@ Cmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: Cmp, `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Cmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Cmp, [{ type: Component, args: [{ template: ` @@ -93,7 +93,7 @@ class Module { Module.ɵmod = i0.ɵɵdefineNgModule({ type: Module }); Module.ɵinj = i0.ɵɵdefineInjector({ factory: function Module_Factory(t) { return new (t || Module)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(Module, { declarations: [Cmp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Module, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Module, [{ type: NgModule, args: [{ declarations: [Cmp] }] }], null, null); })(); @@ -122,7 +122,7 @@ Cmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: Cmp, '*' selector: `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Cmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Cmp, [{ type: Component, args: [{ template: ` @@ -143,7 +143,7 @@ class Module { Module.ɵmod = i0.ɵɵdefineNgModule({ type: Module }); Module.ɵinj = i0.ɵɵdefineInjector({ factory: function Module_Factory(t) { return new (t || Module)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(Module, { declarations: [Cmp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Module, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Module, [{ type: NgModule, args: [{ declarations: [Cmp] }] }], null, null); })(); @@ -174,7 +174,7 @@ Cmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: Cmp, `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Cmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Cmp, [{ type: Component, args: [{ template: ` @@ -197,7 +197,7 @@ class Module { Module.ɵmod = i0.ɵɵdefineNgModule({ type: Module }); Module.ɵinj = i0.ɵɵdefineInjector({ factory: function Module_Factory(t) { return new (t || Module)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(Module, { declarations: [Cmp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Module, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Module, [{ type: NgModule, args: [{ declarations: [Cmp] }] }], null, null); })(); @@ -216,7 +216,7 @@ export class SimpleComponent { } SimpleComponent.ɵfac = function SimpleComponent_Factory(t) { return new (t || SimpleComponent)(); }; SimpleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: SimpleComponent, selector: "simple", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SimpleComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SimpleComponent, [{ type: Component, args: [{ selector: 'simple', template: '
' }] }], null, null); })(); @@ -224,7 +224,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: '

', isInline: true }, directives: [{ type: SimpleComponent, selector: "simple" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', template: '

' }] }], null, null); })(); @@ -233,7 +233,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyApp, SimpleComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyApp, SimpleComponent] }] }], null, null); })(); @@ -264,7 +264,7 @@ export class SimpleComponent { } SimpleComponent.ɵfac = function SimpleComponent_Factory(t) { return new (t || SimpleComponent)(); }; SimpleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: SimpleComponent, selector: "simple", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SimpleComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SimpleComponent, [{ type: Component, args: [{ selector: 'simple', template: '
' }] }], null, null); })(); @@ -272,7 +272,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: '

', isInline: true }, directives: [{ type: SimpleComponent, selector: "simple" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', template: '

' }] }], null, null); })(); @@ -281,7 +281,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [SimpleComponent, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [SimpleComponent, MyApp] }] }], null, null); })(); @@ -315,7 +315,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', template: '
' }] }], null, null); })(); @@ -339,7 +339,7 @@ export class SimpleComponent { } SimpleComponent.ɵfac = function SimpleComponent_Factory(t) { return new (t || SimpleComponent)(); }; SimpleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: SimpleComponent, selector: "simple", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SimpleComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SimpleComponent, [{ type: Component, args: [{ selector: 'simple', template: '' }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/custom_decorator_es5.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/custom_decorator_es5.js index 8653ade882..cf58b49696 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/custom_decorator_es5.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/custom_decorator_es5.js @@ -1,6 +1,7 @@ -(function() { - i0.ɵsetClassMetadata(Comp, [{ - type: Component, - args: [{ - template: '', - providers: [{ provide: token, useExisting: Comp }] +(function () {(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Comp, [{ + type: Component, + args: [{ + template: '', + providers: [{provide: token, useExisting: Comp}], + }] +}], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/GOLDEN_PARTIAL.js index a4e0d29b71..1349ea125e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/GOLDEN_PARTIAL.js @@ -7,7 +7,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: 'Hello {{user.value}}!', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: 'Hello {{user.value}}!' }] }], null, null); })(); @@ -16,7 +16,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -44,7 +44,7 @@ export class IfDirective { } IfDirective.ɵfac = function IfDirective_Factory(t) { return new (t || IfDirective)(i0.ɵɵdirectiveInject(i0.TemplateRef)); }; IfDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: IfDirective, selector: "[if]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(IfDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IfDirective, [{ type: Directive, args: [{ selector: '[if]' }] }], function () { return [{ type: i0.TemplateRef }]; }, null); })(); @@ -61,7 +61,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true }, directives: [{ type: IfDirective, selector: "[if]" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -82,7 +82,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [IfDirective, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [IfDirective, MyComponent] }] }], null, null); })(); @@ -121,7 +121,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty {{ foo }} - {{ item }} `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -139,7 +139,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -191,7 +191,7 @@ export class LifecycleComp { } LifecycleComp.ɵfac = function LifecycleComp_Factory(t) { return new (t || LifecycleComp)(); }; LifecycleComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: LifecycleComp, selector: "lifecycle-comp", inputs: { nameMin: ["name", "nameMin"] }, usesOnChanges: true, ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(LifecycleComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LifecycleComp, [{ type: Component, args: [{ selector: 'lifecycle-comp', template: '' }] }], null, { nameMin: [{ @@ -209,7 +209,7 @@ SimpleLayout.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", t `, isInline: true }, directives: [{ type: LifecycleComp, selector: "lifecycle-comp", inputs: ["name"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SimpleLayout, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SimpleLayout, [{ type: Component, args: [{ selector: 'simple-layout', @@ -224,7 +224,7 @@ export class LifecycleModule { LifecycleModule.ɵmod = i0.ɵɵdefineNgModule({ type: LifecycleModule }); LifecycleModule.ɵinj = i0.ɵɵdefineInjector({ factory: function LifecycleModule_Factory(t) { return new (t || LifecycleModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(LifecycleModule, { declarations: [LifecycleComp, SimpleLayout] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(LifecycleModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LifecycleModule, [{ type: NgModule, args: [{ declarations: [LifecycleComp, SimpleLayout] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js index 56ec109efd..38e78341c7 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js @@ -11,7 +11,7 @@ export class MyPipe { } MyPipe.ɵfac = function MyPipe_Factory(t) { return new (t || MyPipe)(); }; MyPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "myPipe", type: MyPipe, pure: false }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyPipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyPipe, [{ type: Pipe, args: [{ name: 'myPipe', pure: false }] }], null, null); })(); @@ -22,7 +22,7 @@ export class MyPurePipe { } MyPurePipe.ɵfac = function MyPurePipe_Factory(t) { return new (t || MyPurePipe)(); }; MyPurePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "myPurePipe", type: MyPurePipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyPurePipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyPurePipe, [{ type: Pipe, args: [{ name: 'myPurePipe', @@ -37,7 +37,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: '{{name | myPipe:size | myPurePipe:size }}

{{ name | myPipe:1:2:3:4:5 }} {{ name ? 1 : 2 | myPipe }}

', isInline: true }, pipes: { "myPurePipe": MyPurePipe, "myPipe": MyPipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', @@ -49,7 +49,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyPipe, MyPurePipe, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyPipe, MyPurePipe, MyApp] }] }], null, null); })(); @@ -94,7 +94,7 @@ export class MyPipe { } MyPipe.ɵfac = function MyPipe_Factory(t) { return new (t || MyPipe)(); }; MyPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "myPipe", type: MyPipe, pure: false }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyPipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyPipe, [{ type: Pipe, args: [{ name: 'myPipe', pure: false }] }], null, null); })(); @@ -105,7 +105,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: '0:{{name | myPipe}}1:{{name | myPipe:1}}2:{{name | myPipe:1:2}}3:{{name | myPipe:1:2:3}}4:{{name | myPipe:1:2:3:4}}', isInline: true }, pipes: { "myPipe": MyPipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', @@ -117,7 +117,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyPipe, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyPipe, MyApp] }] }], null, null); })(); @@ -156,7 +156,7 @@ export class MyPipe { } MyPipe.ɵfac = function MyPipe_Factory(t) { return new (t || MyPipe)(i0.ɵɵinjectPipeChangeDetectorRef()); }; MyPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "myPipe", type: MyPipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyPipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyPipe, [{ type: Pipe, args: [{ name: 'myPipe' }] }], function () { return [{ type: i0.ChangeDetectorRef }]; }, null); })(); @@ -168,7 +168,7 @@ export class MyOtherPipe { } MyOtherPipe.ɵfac = function MyOtherPipe_Factory(t) { return new (t || MyOtherPipe)(i0.ɵɵinjectPipeChangeDetectorRef(8)); }; MyOtherPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "myOtherPipe", type: MyOtherPipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyOtherPipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyOtherPipe, [{ type: Pipe, args: [{ name: 'myOtherPipe' }] }], function () { return [{ type: i0.ChangeDetectorRef, decorators: [{ @@ -181,7 +181,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: '{{name | myPipe }}

{{ name | myOtherPipe }}

', isInline: true }, pipes: { "myPipe": MyPipe, "myOtherPipe": MyOtherPipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', template: '{{name | myPipe }}

{{ name | myOtherPipe }}

' }] }], null, null); })(); @@ -190,7 +190,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyPipe, MyOtherPipe, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyPipe, MyOtherPipe, MyApp] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js index fc0942d116..212fac45a2 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js @@ -7,7 +7,7 @@ export class SomeDirective { } SomeDirective.ɵfac = function SomeDirective_Factory(t) { return new (t || SomeDirective)(); }; SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SomeDirective, selector: "[someDir]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeDirective, [{ type: Directive, args: [{ selector: '[someDir]', @@ -35,7 +35,7 @@ ViewQueryComponent.ɵfac = function ViewQueryComponent_Factory(t) { return new ( ViewQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: ViewQueryComponent, selector: "view-query-component", viewQueries: [{ propertyName: "someDir", first: true, predicate: SomeDirective, descendants: true }, { propertyName: "someDirs", predicate: SomeDirective, descendants: true }], ngImport: i0, template: { source: `
`, isInline: true }, directives: [{ type: function () { return SomeDirective; }, selector: "[someDir]" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ViewQueryComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ViewQueryComponent, [{ type: Component, args: [{ selector: 'view-query-component', @@ -55,7 +55,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [SomeDirective, ViewQueryComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [SomeDirective, ViewQueryComponent] }] }], null, null); })(); @@ -90,7 +90,7 @@ ViewQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLD
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ViewQueryComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ViewQueryComponent, [{ type: Component, args: [{ selector: 'view-query-component', @@ -111,7 +111,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [ViewQueryComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [ViewQueryComponent] }] }], null, null); })(); @@ -141,7 +141,7 @@ export class SomeDirective { } SomeDirective.ɵfac = function SomeDirective_Factory(t) { return new (t || SomeDirective)(); }; SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SomeDirective, selector: "[someDir]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeDirective, [{ type: Directive, args: [{ selector: '[someDir]', @@ -169,7 +169,7 @@ ViewQueryComponent.ɵfac = function ViewQueryComponent_Factory(t) { return new ( ViewQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: ViewQueryComponent, selector: "view-query-component", viewQueries: [{ propertyName: "someDir", first: true, predicate: SomeDirective, descendants: true, static: true }, { propertyName: "foo", first: true, predicate: ["foo"], descendants: true }], ngImport: i0, template: { source: `
`, isInline: true }, directives: [{ type: function () { return SomeDirective; }, selector: "[someDir]" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ViewQueryComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ViewQueryComponent, [{ type: Component, args: [{ selector: 'view-query-component', @@ -189,7 +189,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [SomeDirective, ViewQueryComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [SomeDirective, ViewQueryComponent] }] }], null, null); })(); @@ -221,7 +221,7 @@ export class SomeDirective { } SomeDirective.ɵfac = function SomeDirective_Factory(t) { return new (t || SomeDirective)(); }; SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SomeDirective, selector: "[someDir]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeDirective, [{ type: Directive, args: [{ selector: '[someDir]', @@ -251,7 +251,7 @@ ViewQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLD
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ViewQueryComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ViewQueryComponent, [{ type: Component, args: [{ selector: 'view-query-component', @@ -279,7 +279,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [ViewQueryComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [ViewQueryComponent] }] }], null, null); })(); @@ -311,7 +311,7 @@ export class SomeDirective { } SomeDirective.ɵfac = function SomeDirective_Factory(t) { return new (t || SomeDirective)(); }; SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SomeDirective, selector: "[someDir]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeDirective, [{ type: Directive, args: [{ selector: '[someDir]', @@ -339,7 +339,7 @@ ContentQueryComponent.ɵfac = function ContentQueryComponent_Factory(t) { return ContentQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: ContentQueryComponent, selector: "content-query-component", queries: [{ propertyName: "someDir", first: true, predicate: SomeDirective, descendants: true }, { propertyName: "someDirList", predicate: SomeDirective }], ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ContentQueryComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContentQueryComponent, [{ type: Component, args: [{ selector: 'content-query-component', @@ -362,7 +362,7 @@ MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: My
`, isInline: true }, directives: [{ type: function () { return ContentQueryComponent; }, selector: "content-query-component" }, { type: function () { return SomeDirective; }, selector: "[someDir]" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', @@ -378,7 +378,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [SomeDirective, ContentQueryComponent, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [SomeDirective, ContentQueryComponent, MyApp] }] }], null, null); })(); @@ -417,7 +417,7 @@ ContentQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEH
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ContentQueryComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContentQueryComponent, [{ type: Component, args: [{ selector: 'content-query-component', @@ -438,7 +438,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [ContentQueryComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [ContentQueryComponent] }] }], null, null); })(); @@ -468,7 +468,7 @@ export class SomeDirective { } SomeDirective.ɵfac = function SomeDirective_Factory(t) { return new (t || SomeDirective)(); }; SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SomeDirective, selector: "[someDir]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeDirective, [{ type: Directive, args: [{ selector: '[someDir]', @@ -496,7 +496,7 @@ ContentQueryComponent.ɵfac = function ContentQueryComponent_Factory(t) { return ContentQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: ContentQueryComponent, selector: "content-query-component", queries: [{ propertyName: "someDir", first: true, predicate: SomeDirective, descendants: true, static: true }, { propertyName: "foo", first: true, predicate: ["foo"], descendants: true }], ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ContentQueryComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContentQueryComponent, [{ type: Component, args: [{ selector: 'content-query-component', @@ -519,7 +519,7 @@ MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: My
`, isInline: true }, directives: [{ type: function () { return ContentQueryComponent; }, selector: "content-query-component" }, { type: function () { return SomeDirective; }, selector: "[someDir]" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', @@ -535,7 +535,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [SomeDirective, ContentQueryComponent, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [SomeDirective, ContentQueryComponent, MyApp] }] }], null, null); })(); @@ -571,7 +571,7 @@ export class SomeDirective { } SomeDirective.ɵfac = function SomeDirective_Factory(t) { return new (t || SomeDirective)(); }; SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SomeDirective, selector: "[someDir]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeDirective, [{ type: Directive, args: [{ selector: '[someDir]', @@ -601,7 +601,7 @@ ContentQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEH
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ContentQueryComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContentQueryComponent, [{ type: Component, args: [{ selector: 'content-query-component', @@ -629,7 +629,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [ContentQueryComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [ContentQueryComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/GOLDEN_PARTIAL.js index bf3301db8e..3ef7aed51e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/GOLDEN_PARTIAL.js @@ -12,7 +12,7 @@ export class ForOfDirective { } ForOfDirective.ɵfac = function ForOfDirective_Factory(t) { return new (t || ForOfDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.TemplateRef)); }; ForOfDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: ForOfDirective, selector: "[forOf]", inputs: { forOf: "forOf" }, usesOnChanges: true, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ForOfDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ForOfDirective, [{ type: Directive, args: [{ selector: '[forOf]' }] }], function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }]; }, { forOf: [{ @@ -54,7 +54,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ``, isInline: true }, directives: [{ type: function () { return ForOfDirective; }, selector: "[forOf]", inputs: ["forOf"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -66,7 +66,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, ForOfDirective] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, ForOfDirective] }] }], null, null); })(); @@ -102,7 +102,7 @@ export class ForOfDirective { } ForOfDirective.ɵfac = function ForOfDirective_Factory(t) { return new (t || ForOfDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.TemplateRef)); }; ForOfDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: ForOfDirective, selector: "[forOf]", inputs: { forOf: "forOf" }, usesOnChanges: true, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ForOfDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ForOfDirective, [{ type: Directive, args: [{ selector: '[forOf]' }] }], function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }]; }, { forOf: [{ @@ -144,7 +144,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ``, isInline: true }, directives: [{ type: function () { return ForOfDirective; }, selector: "[forOf]", inputs: ["forOf"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -156,7 +156,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, ForOfDirective] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, ForOfDirective] }] }], null, null); })(); @@ -192,7 +192,7 @@ export class ForOfDirective { } ForOfDirective.ɵfac = function ForOfDirective_Factory(t) { return new (t || ForOfDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.TemplateRef)); }; ForOfDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: ForOfDirective, selector: "[forOf]", inputs: { forOf: "forOf" }, usesOnChanges: true, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ForOfDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ForOfDirective, [{ type: Directive, args: [{ selector: '[forOf]' }] }], function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }]; }, { forOf: [{ @@ -247,7 +247,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true }, directives: [{ type: function () { return ForOfDirective; }, selector: "[forOf]", inputs: ["forOf"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -269,7 +269,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, ForOfDirective] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, ForOfDirective] }] }], null, null); })(); @@ -308,7 +308,7 @@ export class ForOfDirective { } ForOfDirective.ɵfac = function ForOfDirective_Factory(t) { return new (t || ForOfDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.TemplateRef)); }; ForOfDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: ForOfDirective, selector: "[forOf]", inputs: { forOf: "forOf" }, usesOnChanges: true, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ForOfDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ForOfDirective, [{ type: Directive, args: [{ selector: '[forOf]' }] }], function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }]; }, { forOf: [{ diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/value_composition/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/value_composition/GOLDEN_PARTIAL.js index 7f13f3ee35..45e05b3268 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/value_composition/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/value_composition/GOLDEN_PARTIAL.js @@ -7,7 +7,7 @@ export class ChildComponent { } ChildComponent.ɵfac = function ChildComponent_Factory(t) { return new (t || ChildComponent)(); }; ChildComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: ChildComponent, selector: "child", ngImport: i0, template: { source: 'child-view', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ChildComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChildComponent, [{ type: Component, args: [{ selector: 'child', template: 'child-view' }] }], null, null); })(); @@ -15,7 +15,7 @@ export class SomeDirective { } SomeDirective.ɵfac = function SomeDirective_Factory(t) { return new (t || SomeDirective)(); }; SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SomeDirective, selector: "[some-directive]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeDirective, [{ type: Directive, args: [{ selector: '[some-directive]' }] }], null, null); })(); @@ -23,7 +23,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '!', isInline: true }, directives: [{ type: ChildComponent, selector: "child" }, { type: SomeDirective, selector: "[some-directive]" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: '!' }] }], null, null); })(); @@ -32,7 +32,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [ChildComponent, SomeDirective, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [ChildComponent, SomeDirective, MyComponent] }] }], null, null); })(); @@ -67,7 +67,7 @@ export class SomeDirective { } SomeDirective.ɵfac = function SomeDirective_Factory(t) { return new (t || SomeDirective)(); }; SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SomeDirective, selector: "div.foo[some-directive]:not([title]):not(.baz)", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeDirective, [{ type: Directive, args: [{ selector: 'div.foo[some-directive]:not([title]):not(.baz)' }] }], null, null); })(); @@ -75,7 +75,7 @@ export class OtherDirective { } OtherDirective.ɵfac = function OtherDirective_Factory(t) { return new (t || OtherDirective)(); }; OtherDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: OtherDirective, selector: ":not(span[title]):not(.baz)", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(OtherDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OtherDirective, [{ type: Directive, args: [{ selector: ':not(span[title]):not(.baz)' }] }], null, null); })(); @@ -84,7 +84,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [SomeDirective, OtherDirective] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [SomeDirective, OtherDirective] }] }], null, null); })(); @@ -115,7 +115,7 @@ export class SomeComponent { } SomeComponent.ɵfac = function SomeComponent_Factory(t) { return new (t || SomeComponent)(); }; SomeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: SomeComponent, selector: "#my-app", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeComponent, [{ type: Component, args: [{ selector: '#my-app', template: '' }] }], null, null); })(); @@ -124,7 +124,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [SomeComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [SomeComponent] }] }], null, null); })(); @@ -151,7 +151,7 @@ export class RouterOutlet { } RouterOutlet.ɵfac = function RouterOutlet_Factory(t) { return new (t || RouterOutlet)(); }; RouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: RouterOutlet, selector: "router-outlet", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RouterOutlet, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RouterOutlet, [{ type: Directive, args: [{ selector: 'router-outlet' }] }], null, null); })(); @@ -159,7 +159,7 @@ export class EmptyOutletComponent { } EmptyOutletComponent.ɵfac = function EmptyOutletComponent_Factory(t) { return new (t || EmptyOutletComponent)(); }; EmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: EmptyOutletComponent, selector: "ng-component", ngImport: i0, template: { source: '', isInline: true }, directives: [{ type: RouterOutlet, selector: "router-outlet" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EmptyOutletComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EmptyOutletComponent, [{ type: Component, args: [{ template: '' }] }], null, null); })(); @@ -168,7 +168,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [EmptyOutletComponent, RouterOutlet] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [EmptyOutletComponent, RouterOutlet] }] }], null, null); })(); @@ -204,7 +204,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: '' }] }], function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }]; }, null); })(); @@ -213,7 +213,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -246,7 +246,7 @@ export class IfDirective { } IfDirective.ɵfac = function IfDirective_Factory(t) { return new (t || IfDirective)(i0.ɵɵdirectiveInject(i0.TemplateRef)); }; IfDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: IfDirective, selector: "[if]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(IfDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IfDirective, [{ type: Directive, args: [{ selector: '[if]' }] }], function () { return [{ type: i0.TemplateRef }]; }, null); })(); @@ -257,7 +257,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '', isInline: true }, directives: [{ type: IfDirective, selector: "[if]" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: '' }] }], null, null); })(); @@ -266,7 +266,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [IfDirective, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [IfDirective, MyComponent] }] }], null, null); })(); @@ -303,7 +303,7 @@ MyComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: M

{{ names[0] }}

{{ names[1] }}

`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComp, [{ type: Component, args: [{ selector: 'my-comp', @@ -324,7 +324,7 @@ MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: ` `, isInline: true }, directives: [{ type: MyComp, selector: "my-comp", inputs: ["names"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', @@ -338,7 +338,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComp, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComp, MyApp] }] }], null, null); })(); @@ -383,7 +383,7 @@ MyComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: M {{ names[10] }} {{ names[11] }} `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComp, [{ type: Component, args: [{ selector: 'my-comp', @@ -422,7 +422,7 @@ MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: My `, isInline: true }, directives: [{ type: MyComp, selector: "my-comp", inputs: ["names"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', @@ -437,7 +437,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComp, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComp, MyApp] }] }], null, null); })(); @@ -481,7 +481,7 @@ ObjectComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", typ

{{ config['duration'] }}

{{ config.animation }}

`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ObjectComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ObjectComp, [{ type: Component, args: [{ selector: 'object-comp', @@ -502,7 +502,7 @@ MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: ` `, isInline: true }, directives: [{ type: ObjectComp, selector: "object-comp", inputs: ["config"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', @@ -516,7 +516,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [ObjectComp, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [ObjectComp, MyApp] }] }], null, null); })(); @@ -555,7 +555,7 @@ NestedComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", typ

{{config.actions[0].opacity }}

{{config.actions[1].duration }}

`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(NestedComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NestedComp, [{ type: Component, args: [{ selector: 'nested-comp', @@ -579,7 +579,7 @@ MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: My `, isInline: true }, directives: [{ type: NestedComp, selector: "nested-comp", inputs: ["config"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', @@ -594,7 +594,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [NestedComp, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [NestedComp, MyApp] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/elements/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/elements/GOLDEN_PARTIAL.js index 4c9eafc9a3..118af5f522 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/elements/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/elements/GOLDEN_PARTIAL.js @@ -7,7 +7,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '

test

', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -19,7 +19,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -46,7 +46,7 @@ export class MathCmp { } MathCmp.ɵfac = function MathCmp_Factory(t) { return new (t || MathCmp)(); }; MathCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MathCmp, selector: "math", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MathCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MathCmp, [{ type: Component, args: [{ selector: 'math', template: '' }] }], null, null); })(); @@ -54,7 +54,7 @@ export class InfinityCmp { } InfinityCmp.ɵfac = function InfinityCmp_Factory(t) { return new (t || InfinityCmp)(); }; InfinityCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: InfinityCmp, selector: "infinity", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(InfinityCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InfinityCmp, [{ type: Component, args: [{ selector: 'infinity', template: '' }] }], null, null); })(); @@ -62,7 +62,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '

test

', isInline: true }, directives: [{ type: MathCmp, selector: "math" }, { type: InfinityCmp, selector: "infinity" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -74,7 +74,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, MathCmp, InfinityCmp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, MathCmp, InfinityCmp] }] }], null, null); })(); @@ -109,7 +109,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '
Hello World!
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -121,7 +121,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -148,7 +148,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '
Hello World!
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -160,7 +160,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -187,7 +187,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: 'in a container', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -199,7 +199,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -226,7 +226,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: '' }] }], null, null); })(); @@ -235,7 +235,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -265,7 +265,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: '
' }] }], null, null); })(); @@ -274,7 +274,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -302,7 +302,7 @@ export class DivDir { } DivDir.ɵfac = function DivDir_Factory(t) { return new (t || DivDir)(); }; DivDir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: DivDir, selector: "div", inputs: { ternary: "ternary", pipe: "pipe", and: "and", or: "or" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(DivDir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DivDir, [{ type: Directive, args: [{ selector: 'div' }] }], null, { ternary: [{ @@ -319,7 +319,7 @@ export class PipePipe { } PipePipe.ɵfac = function PipePipe_Factory(t) { return new (t || PipePipe)(); }; PipePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "pipe", type: PipePipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PipePipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PipePipe, [{ type: Pipe, args: [{ name: 'pipe' }] }], null, null); })(); @@ -340,7 +340,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty [and]="cond && [b]" [or]="cond || [c]" >`, isInline: true }, directives: [{ type: DivDir, selector: "div", inputs: ["ternary", "pipe", "and", "or"] }], pipes: { "pipe": PipePipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -357,7 +357,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, DivDir, PipePipe] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, DivDir, PipePipe] }] }], null, null); })(); @@ -406,7 +406,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", inputs: { expandedHeight: "expandedHeight", collapsedHeight: "collapsedHeight", expandedWidth: "expandedWidth", collapsedWidth: "collapsedWidth" }, host: { properties: { "@expansionHeight": "{\n value: getExpandedState(),\n params: {\n collapsedHeight: collapsedHeight,\n expandedHeight: expandedHeight\n }\n }", "@expansionWidth": "{\n value: getExpandedState(),\n params: {\n collapsedWidth: collapsedWidth,\n expandedWidth: expandedWidth\n }\n }" } }, ngImport: i0, template: { source: '...', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -442,7 +442,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -478,7 +478,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -490,7 +490,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -522,7 +522,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -537,7 +537,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/GOLDEN_PARTIAL.js index 1915dcf812..2b42ec9bea 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/GOLDEN_PARTIAL.js @@ -10,7 +10,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: '', isInline: true }, directives: [{ type: function () { return TodoComponent; }, selector: "todo", inputs: ["data"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', template: '' }] }], null, null); })(); @@ -21,7 +21,7 @@ export class TodoComponent { } TodoComponent.ɵfac = function TodoComponent_Factory(t) { return new (t || TodoComponent)(); }; TodoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TodoComponent, selector: "todo", inputs: { data: "data" }, ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TodoComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TodoComponent, [{ type: Component, args: [{ selector: 'todo', @@ -35,7 +35,7 @@ export class TodoModule { TodoModule.ɵmod = i0.ɵɵdefineNgModule({ type: TodoModule }); TodoModule.ɵinj = i0.ɵɵdefineInjector({ factory: function TodoModule_Factory(t) { return new (t || TodoModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(TodoModule, { declarations: [TodoComponent, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TodoModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TodoModule, [{ type: NgModule, args: [{ declarations: [TodoComponent, MyApp], diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/animations/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/animations/GOLDEN_PARTIAL.js index a8acc8b3f3..7cdcfdd9ac 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/animations/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/animations/GOLDEN_PARTIAL.js @@ -7,7 +7,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', template: '
' }] }], null, null); })(); @@ -16,7 +16,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyApp] }] }], null, null); })(); @@ -45,7 +45,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', @@ -57,7 +57,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyApp] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/any/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/any/GOLDEN_PARTIAL.js index 6f20bf1f33..0f6273d3b9 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/any/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/any/GOLDEN_PARTIAL.js @@ -7,7 +7,7 @@ class Comp { } Comp.ɵfac = function Comp_Factory(t) { return new (t || Comp)(); }; Comp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: Comp, selector: "ng-component", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Comp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Comp, [{ type: Component, args: [{ template: '
' }] }], null, null); })(); @@ -29,7 +29,7 @@ class Comp { } Comp.ɵfac = function Comp_Factory(t) { return new (t || Comp)(); }; Comp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: Comp, selector: "ng-component", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Comp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Comp, [{ type: Component, args: [{ template: '
' }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/hello_world/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/hello_world/GOLDEN_PARTIAL.js index 5dc0f8b1a7..e0dcdebda0 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/hello_world/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/hello_world/GOLDEN_PARTIAL.js @@ -14,7 +14,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", providers: [GreeterEN, { provide: Greeter, useClass: GreeterEN }], ngImport: i0, template: { source: '
', isInline: true }, viewProviders: [GreeterEN] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -28,7 +28,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/interpolations/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/interpolations/GOLDEN_PARTIAL.js index a4e75f7a5f..a6731a273d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/interpolations/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/interpolations/GOLDEN_PARTIAL.js @@ -10,7 +10,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: ' {{list[0]}} {{list[1]}} {{list[2]}} {{list[3]}} {{list[4]}} {{list[5]}} {{list[6]}} {{list[7]}} {{list[8]}} ', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', @@ -22,7 +22,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyApp] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js index 0102bddbda..8ba1562565 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js @@ -13,7 +13,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "ng-component", ngImport: i0, template: { source: ` `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: ` @@ -48,7 +48,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "ng-component", ngImport: i0, template: { source: ` `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: ` @@ -80,7 +80,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: ` @@ -113,7 +113,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty [attr.id]="2" attr.tabindex="prefix-{{0 + 3}}" attr.aria-label="hello-{{1 + 3}}-{{2 + 3}}">`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: ` @@ -143,7 +143,7 @@ export class CustomEl { } CustomEl.ɵfac = function CustomEl_Factory(t) { return new (t || CustomEl)(); }; CustomEl.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: CustomEl, selector: "custom-element", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(CustomEl, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomEl, [{ type: Component, args: [{ selector: 'custom-element', template: '' }] }], null, null); })(); @@ -159,7 +159,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true }, directives: [{ type: CustomEl, selector: "custom-element" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: ` @@ -174,7 +174,7 @@ export class MyMod { MyMod.ɵmod = i0.ɵɵdefineNgModule({ type: MyMod }); MyMod.ɵinj = i0.ɵɵdefineInjector({ factory: function MyMod_Factory(t) { return new (t || MyMod)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyMod, { declarations: [MyComponent, CustomEl] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyMod, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyMod, [{ type: NgModule, args: [{ declarations: [MyComponent, CustomEl] }] }], null, null); })(); @@ -214,7 +214,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: ` @@ -253,7 +253,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty [id]="2" aria-label="link" [attr.baz]="three">`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-app', @@ -273,7 +273,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -316,7 +316,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-app', @@ -339,7 +339,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js index 3ae4495f10..616903d2a9 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js @@ -10,7 +10,7 @@ export class HostBindingDir { } HostBindingDir.ɵfac = function HostBindingDir_Factory(t) { return new (t || HostBindingDir)(); }; HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: HostBindingDir, selector: "[hostBindingDir]", host: { properties: { "id": "dirId" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(HostBindingDir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HostBindingDir, [{ type: Directive, args: [{ selector: '[hostBindingDir]' }] }], null, { dirId: [{ @@ -22,7 +22,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [HostBindingDir] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [HostBindingDir] }] }], null, null); })(); @@ -50,7 +50,7 @@ export class HostBindingDir { } HostBindingDir.ɵfac = function HostBindingDir_Factory(t) { return new (t || HostBindingDir)(); }; HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: HostBindingDir, selector: "[hostBindingDir]", host: { properties: { "id": "getData()?.id" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(HostBindingDir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HostBindingDir, [{ type: Directive, args: [{ selector: '[hostBindingDir]', host: { '[id]': 'getData()?.id' } }] }], null, null); })(); @@ -59,7 +59,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [HostBindingDir] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [HostBindingDir] }] }], null, null); })(); @@ -92,7 +92,7 @@ export class HostBindingComp { } HostBindingComp.ɵfac = function HostBindingComp_Factory(t) { return new (t || HostBindingComp)(); }; HostBindingComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: HostBindingComp, selector: "host-binding-comp", host: { properties: { "id": "[\"red\", id]" } }, ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(HostBindingComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HostBindingComp, [{ type: Component, args: [{ selector: 'host-binding-comp', host: { '[id]': '["red", id]' }, template: '' }] }], null, null); })(); @@ -101,7 +101,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [HostBindingComp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [HostBindingComp] }] }], null, null); })(); @@ -132,7 +132,7 @@ export class HostAttributeDir { } HostAttributeDir.ɵfac = function HostAttributeDir_Factory(t) { return new (t || HostAttributeDir)(); }; HostAttributeDir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: HostAttributeDir, selector: "[hostAttributeDir]", host: { properties: { "attr.required": "required" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(HostAttributeDir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HostAttributeDir, [{ type: Directive, args: [{ selector: '[hostAttributeDir]', host: { '[attr.required]': 'required' } }] }], null, null); })(); @@ -141,7 +141,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [HostAttributeDir] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [HostAttributeDir] }] }], null, null); })(); @@ -169,7 +169,7 @@ export class HostAttributeDir { } HostAttributeDir.ɵfac = function HostAttributeDir_Factory(t) { return new (t || HostAttributeDir)(); }; HostAttributeDir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: HostAttributeDir, selector: "[hostAttributeDir]", host: { attributes: { "aria-label": "label" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(HostAttributeDir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HostAttributeDir, [{ type: Directive, args: [{ selector: '[hostAttributeDir]', host: { 'aria-label': 'label' } }] }], null, null); })(); @@ -178,7 +178,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [HostAttributeDir] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [HostAttributeDir] }] }], null, null); })(); @@ -205,7 +205,7 @@ export class HostAttributeComp { } HostAttributeComp.ɵfac = function HostAttributeComp_Factory(t) { return new (t || HostAttributeComp)(); }; HostAttributeComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: HostAttributeComp, selector: "my-host-attribute-component", host: { attributes: { "title": "hello there from component" }, styleAttribute: "opacity:1" }, ngImport: i0, template: { source: '...', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(HostAttributeComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HostAttributeComp, [{ type: Component, args: [{ selector: 'my-host-attribute-component', @@ -217,7 +217,7 @@ export class HostAttributeDir { } HostAttributeDir.ɵfac = function HostAttributeDir_Factory(t) { return new (t || HostAttributeDir)(); }; HostAttributeDir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: HostAttributeDir, selector: "[hostAttributeDir]", host: { attributes: { "title": "hello there from directive" }, properties: { "style.opacity": "true", "class.three": "true" }, styleAttribute: "width: 200px; height: 500px", classAttribute: "one two" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(HostAttributeDir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HostAttributeDir, [{ type: Directive, args: [{ selector: '[hostAttributeDir]', @@ -235,7 +235,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [HostAttributeComp, HostAttributeDir] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [HostAttributeComp, HostAttributeDir] }] }], null, null); })(); @@ -270,7 +270,7 @@ export class MyDirective { } MyDirective.ɵfac = function MyDirective_Factory(t) { return new (t || MyDirective)(); }; MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: MyDirective, selector: "[my-dir]", host: { properties: { "title": "myTitle", "tabindex": "1", "id": "myId" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyDirective, [{ type: Directive, args: [{ selector: '[my-dir]', host: { '[title]': 'myTitle', '[tabindex]': '1', '[id]': 'myId' } }] }], null, null); })(); @@ -299,7 +299,7 @@ export class MyDirective { } MyDirective.ɵfac = function MyDirective_Factory(t) { return new (t || MyDirective)(); }; MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: MyDirective, selector: "[my-dir]", host: { properties: { "tabindex": "1", "title": "myTitle", "id": "myId" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyDirective, [{ type: Directive, args: [{ selector: '[my-dir]', host: { '[tabindex]': '1' } }] }], null, { myTitle: [{ @@ -330,7 +330,7 @@ export class MyDirective { } MyDirective.ɵfac = function MyDirective_Factory(t) { return new (t || MyDirective)(); }; MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: MyDirective, selector: "[my-dir]", host: { properties: { "title": "\"my title\"", "attr.tabindex": "1", "id": "\"my-id\"" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyDirective, [{ type: Directive, args: [{ selector: '[my-dir]', @@ -360,7 +360,7 @@ export class MyDirective { } MyDirective.ɵfac = function MyDirective_Factory(t) { return new (t || MyDirective)(); }; MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: MyDirective, selector: "[my-dir]", host: { properties: { "@expand": "expandedState", "@fadeOut": "true", "@shrink": "isSmall" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyDirective, [{ type: Directive, args: [{ selector: '[my-dir]', @@ -392,7 +392,7 @@ export class MyDirective { } MyDirective.ɵfac = function MyDirective_Factory(t) { return new (t || MyDirective)(); }; MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: MyDirective, selector: "[my-dir]", host: { properties: { "attr.title": "myTitle", "attr.tabindex": "1", "attr.id": "myId" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyDirective, [{ type: Directive, args: [{ selector: '[my-dir]', @@ -424,7 +424,7 @@ export class MyDirective { } MyDirective.ɵfac = function MyDirective_Factory(t) { return new (t || MyDirective)(); }; MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: MyDirective, selector: "[my-dir]", host: { properties: { "attr.tabindex": "1", "attr.title": "myTitle", "attr.id": "myId" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyDirective, [{ type: Directive, args: [{ selector: '[my-dir]', host: { '[attr.tabindex]': '1' } }] }], null, { myTitle: [{ @@ -455,7 +455,7 @@ export class MyDirective { } MyDirective.ɵfac = function MyDirective_Factory(t) { return new (t || MyDirective)(); }; MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: MyDirective, selector: "[my-dir]", host: { properties: { "attr.title": "\"my title\"", "tabindex": "1", "attr.id": "\"my-id\"" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyDirective, [{ type: Directive, args: [{ selector: '[my-dir]', @@ -485,7 +485,7 @@ export class MyDirective { } MyDirective.ɵfac = function MyDirective_Factory(t) { return new (t || MyDirective)(); }; MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: MyDirective, selector: "[my-dir]", host: { listeners: { "mousedown": "mousedown()", "mouseup": "mouseup()", "click": "click()" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyDirective, [{ type: Directive, args: [{ selector: '[my-dir]', @@ -522,7 +522,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-comp", host: { listeners: { "@animation.done": "done()", "@animation.start": "start()" } }, ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-comp', @@ -559,7 +559,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-comp", host: { listeners: { "mousedown": "mousedown()", "@animation.done": "done()", "mouseup": "mouseup()", "@animation.start": "start()", "click": "click()" } }, ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-comp', diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/GOLDEN_PARTIAL.js index e56a069a75..fc24b9feb7 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/GOLDEN_PARTIAL.js @@ -15,7 +15,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty {{ myRef.id }} `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-app', @@ -32,7 +32,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -67,7 +67,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty {{ myInput.value }} `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-app', @@ -83,7 +83,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -118,7 +118,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-app', @@ -134,7 +134,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -167,7 +167,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-app", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-app', @@ -181,7 +181,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js index a073eeb04b..945a20dd15 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js @@ -10,7 +10,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-app", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-app', template: '' }] }], null, null); })(); @@ -19,7 +19,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -51,7 +51,7 @@ export class MyComponent { MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ` `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -64,7 +64,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -106,7 +106,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-app', @@ -129,7 +129,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -170,7 +170,7 @@ export class MyComponent { MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ` `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -183,7 +183,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -212,7 +212,7 @@ export class AsyncPipe { } AsyncPipe.ɵfac = function AsyncPipe_Factory(t) { return new (t || AsyncPipe)(); }; AsyncPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "async", type: AsyncPipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AsyncPipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AsyncPipe, [{ type: Pipe, args: [{ name: 'async' }] }], null, null); })(); @@ -229,7 +229,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "ng-component", ngImport: i0, template: { source: '', isInline: true }, pipes: { "async": AsyncPipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: '' @@ -240,7 +240,7 @@ export class MyMod { MyMod.ɵmod = i0.ɵɵdefineNgModule({ type: MyMod }); MyMod.ɵinj = i0.ɵɵdefineInjector({ factory: function MyMod_Factory(t) { return new (t || MyMod)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyMod, { declarations: [MyComponent, AsyncPipe] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyMod, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyMod, [{ type: NgModule, args: [{ declarations: [MyComponent, AsyncPipe] }] }], null, null); })(); @@ -280,7 +280,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "ng-component", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: '' }] }], null, null); })(); @@ -305,7 +305,7 @@ export class ButtonDir { } ButtonDir.ɵfac = function ButtonDir_Factory(t) { return new (t || ButtonDir)(); }; ButtonDir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: ButtonDir, selector: "button", inputs: { al: ["aria-label", "al"] }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ButtonDir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ButtonDir, [{ type: Directive, args: [{ selector: 'button' }] }], null, { al: [{ @@ -316,7 +316,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "ng-component", ngImport: i0, template: { source: '', isInline: true }, directives: [{ type: ButtonDir, selector: "button", inputs: ["aria-label"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: '' }] }], null, null); })(); @@ -325,7 +325,7 @@ export class MyMod { MyMod.ɵmod = i0.ɵɵdefineNgModule({ type: MyMod }); MyMod.ɵinj = i0.ɵɵdefineInjector({ factory: function MyMod_Factory(t) { return new (t || MyMod)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyMod, { declarations: [ButtonDir, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyMod, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyMod, [{ type: NgModule, args: [{ declarations: [ButtonDir, MyComponent] }] }], null, null); })(); @@ -357,7 +357,7 @@ export class ButtonDir { } ButtonDir.ɵfac = function ButtonDir_Factory(t) { return new (t || ButtonDir)(); }; ButtonDir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: ButtonDir, selector: "button", inputs: { al: ["aria-label", "al"] }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ButtonDir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ButtonDir, [{ type: Directive, args: [{ selector: 'button' }] }], null, { al: [{ @@ -368,7 +368,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "ng-component", ngImport: i0, template: { source: '', isInline: true }, directives: [{ type: ButtonDir, selector: "button", inputs: ["aria-label"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: '' @@ -379,7 +379,7 @@ export class MyMod { MyMod.ɵmod = i0.ɵɵdefineNgModule({ type: MyMod }); MyMod.ɵinj = i0.ɵɵdefineInjector({ factory: function MyMod_Factory(t) { return new (t || MyMod)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyMod, { declarations: [ButtonDir, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyMod, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyMod, [{ type: NgModule, args: [{ declarations: [ButtonDir, MyComponent] }] }], null, null); })(); @@ -421,7 +421,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty [tabindex]="1" [@fade]="'out'"> `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: ` @@ -458,7 +458,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "ng-component", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: '' }] }], null, null); })(); @@ -483,7 +483,7 @@ export class SpanDir { } SpanDir.ɵfac = function SpanDir_Factory(t) { return new (t || SpanDir)(); }; SpanDir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SpanDir, selector: "span", inputs: { someProp: "someProp" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SpanDir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SpanDir, [{ type: Directive, args: [{ selector: 'span' }] }], null, { someProp: [{ @@ -493,7 +493,7 @@ export class CustomEl { } CustomEl.ɵfac = function CustomEl_Factory(t) { return new (t || CustomEl)(); }; CustomEl.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: CustomEl, selector: "custom-element", inputs: { prop: "prop", otherProp: "otherProp" }, ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(CustomEl, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomEl, [{ type: Component, args: [{ selector: 'custom-element', template: '' }] }], null, { prop: [{ @@ -513,7 +513,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true }, directives: [{ type: SpanDir, selector: "span", inputs: ["someProp"] }, { type: CustomEl, selector: "custom-element", inputs: ["prop", "otherProp"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: ` @@ -528,7 +528,7 @@ export class MyMod { MyMod.ɵmod = i0.ɵɵdefineNgModule({ type: MyMod }); MyMod.ɵinj = i0.ɵɵdefineInjector({ factory: function MyMod_Factory(t) { return new (t || MyMod)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyMod, { declarations: [MyComponent, CustomEl, SpanDir] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyMod, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyMod, [{ type: NgModule, args: [{ declarations: [MyComponent, CustomEl, SpanDir] }] }], null, null); })(); @@ -568,7 +568,7 @@ export class SpanDir { } SpanDir.ɵfac = function SpanDir_Factory(t) { return new (t || SpanDir)(); }; SpanDir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SpanDir, selector: "span", inputs: { someProp: "someProp" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SpanDir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SpanDir, [{ type: Directive, args: [{ selector: 'span' }] }], null, { someProp: [{ @@ -585,7 +585,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true }, directives: [{ type: SpanDir, selector: "span", inputs: ["someProp"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: ` @@ -599,7 +599,7 @@ export class MyMod { MyMod.ɵmod = i0.ɵɵdefineNgModule({ type: MyMod }); MyMod.ɵinj = i0.ɵɵdefineInjector({ factory: function MyMod_Factory(t) { return new (t || MyMod)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyMod, { declarations: [MyComponent, SpanDir] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyMod, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyMod, [{ type: NgModule, args: [{ declarations: [MyComponent, SpanDir] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/text_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/text_bindings/GOLDEN_PARTIAL.js index f1bb7eaf82..b61b341613 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/text_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/text_bindings/GOLDEN_PARTIAL.js @@ -11,7 +11,7 @@ export class MyComponent { MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
Hello {{ name }}
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -24,7 +24,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_di/di/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_di/di/GOLDEN_PARTIAL.js index 832337086f..5b4f249f69 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_di/di/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_di/di/GOLDEN_PARTIAL.js @@ -7,7 +7,7 @@ export class MyService { } MyService.ɵfac = function MyService_Factory(t) { return new (t || MyService)(); }; MyService.ɵprov = i0.ɵɵdefineInjectable({ token: MyService, factory: MyService.ɵfac }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyService, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyService, [{ type: Injectable }], null, null); })(); export class MyComponent { @@ -15,7 +15,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(i0.ɵɵinjectAttribute('name'), i0.ɵɵdirectiveInject(MyService), i0.ɵɵdirectiveInject(MyService, 1), i0.ɵɵdirectiveInject(MyService, 2), i0.ɵɵdirectiveInject(MyService, 4), i0.ɵɵdirectiveInject(MyService, 8), i0.ɵɵdirectiveInject(MyService, 10)); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ``, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: `` }] }], function () { return [{ type: undefined, decorators: [{ @@ -39,7 +39,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); }, providers: [MyService] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent], providers: [MyService] }] }], null, null); })(); @@ -74,7 +74,7 @@ export class MyService { } MyService.ɵfac = function MyService_Factory(t) { return new (t || MyService)(i0.ɵɵinject(MyDependency)); }; MyService.ɵprov = i0.ɵɵdefineInjectable({ token: MyService, factory: MyService.ɵfac }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyService, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyService, [{ type: Injectable }], function () { return [{ type: MyDependency }]; }, null); })(); @@ -105,7 +105,7 @@ export class MyService { } MyService.ɵfac = function MyService_Factory(t) { return new (t || MyService)(i0.ɵɵinject(MyDependency), i0.ɵɵinject(MyOptionalDependency, 8)); }; MyService.ɵprov = i0.ɵɵdefineInjectable({ token: MyService, factory: MyService.ɵfac }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyService, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyService, [{ type: Injectable }], function () { return [{ type: MyDependency }, { type: MyOptionalDependency, decorators: [{ type: Optional @@ -138,7 +138,7 @@ export class MyService { } MyService.ɵfac = function MyService_Factory(t) { return new (t || MyService)(); }; MyService.ɵprov = i0.ɵɵdefineInjectable({ token: MyService, factory: function () { return alternateFactory(); }, providedIn: 'root' }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyService, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyService, [{ type: Injectable, args: [{ providedIn: 'root', useFactory: alternateFactory }] }], null, null); })(); @@ -170,7 +170,7 @@ MyService.ɵprov = i0.ɵɵdefineInjectable({ token: MyService, factory: function else { r = (() => new MyAlternateService())(i0.ɵɵinject(SomeDep)); } return r; }, providedIn: 'root' }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyService, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyService, [{ type: Injectable, args: [{ providedIn: 'root', useFactory: () => new MyAlternateService(), deps: [SomeDep] }] }], null, null); })(); @@ -193,14 +193,14 @@ class MyAlternateService { } MyAlternateService.ɵfac = function MyAlternateService_Factory(t) { return new (t || MyAlternateService)(); }; MyAlternateService.ɵprov = i0.ɵɵdefineInjectable({ token: MyAlternateService, factory: MyAlternateService.ɵfac }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyAlternateService, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyAlternateService, [{ type: Injectable }], null, null); })(); export class MyService { } MyService.ɵfac = function MyService_Factory(t) { return new (t || MyService)(); }; MyService.ɵprov = i0.ɵɵdefineInjectable({ token: MyService, factory: function (t) { return MyAlternateService.ɵfac(t); }, providedIn: 'root' }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyService, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyService, [{ type: Injectable, args: [{ providedIn: 'root', useClass: MyAlternateService }] }], null, null); })(); @@ -225,7 +225,7 @@ class MyAlternateService { } MyAlternateService.ɵfac = function MyAlternateService_Factory(t) { return new (t || MyAlternateService)(); }; MyAlternateService.ɵprov = i0.ɵɵdefineInjectable({ token: MyAlternateService, factory: MyAlternateService.ɵfac }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyAlternateService, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyAlternateService, [{ type: Injectable }], null, null); })(); export class MyService { @@ -237,7 +237,7 @@ MyService.ɵprov = i0.ɵɵdefineInjectable({ token: MyService, factory: function else { r = new MyAlternateService(i0.ɵɵinject(SomeDep)); } return r; }, providedIn: 'root' }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyService, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyService, [{ type: Injectable, args: [{ providedIn: 'root', useClass: MyAlternateService, deps: [SomeDep] }] }], null, null); })(); @@ -260,7 +260,7 @@ class SomeProvider { } SomeProvider.ɵfac = function SomeProvider_Factory(t) { return new (t || SomeProvider)(); }; SomeProvider.ɵprov = i0.ɵɵdefineInjectable({ token: SomeProvider, factory: function (t) { return SomeProviderImpl.ɵfac(t); }, providedIn: 'root' }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeProvider, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeProvider, [{ type: Injectable, args: [{ providedIn: 'root', useClass: forwardRef(() => SomeProviderImpl) }] }], null, null); })(); @@ -269,7 +269,7 @@ class SomeProviderImpl extends SomeProvider { SomeProviderImpl.ɵfac = function SomeProviderImpl_Factory(t) { return ɵSomeProviderImpl_BaseFactory(t || SomeProviderImpl); }; SomeProviderImpl.ɵprov = i0.ɵɵdefineInjectable({ token: SomeProviderImpl, factory: SomeProviderImpl.ɵfac }); const ɵSomeProviderImpl_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SomeProviderImpl); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeProviderImpl, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeProviderImpl, [{ type: Injectable }], null, null); })(); @@ -287,7 +287,7 @@ class Service { } Service.ɵfac = function Service_Factory(t) { return new (t || Service)(); }; Service.ɵprov = i0.ɵɵdefineInjectable({ token: Service, factory: Service.ɵfac }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Service, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Service, [{ type: Injectable }], null, null); })(); export class MyPipe { @@ -299,7 +299,7 @@ export class MyPipe { MyPipe.ɵfac = function MyPipe_Factory(t) { return new (t || MyPipe)(i0.ɵɵdirectiveInject(Service)); }; MyPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "myPipe", type: MyPipe, pure: true }); MyPipe.ɵprov = i0.ɵɵdefineInjectable({ token: MyPipe, factory: MyPipe.ɵfac }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyPipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyPipe, [{ type: Injectable }, { type: Pipe, @@ -314,7 +314,7 @@ export class MyOtherPipe { MyOtherPipe.ɵfac = function MyOtherPipe_Factory(t) { return new (t || MyOtherPipe)(i0.ɵɵdirectiveInject(Service)); }; MyOtherPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "myOtherPipe", type: MyOtherPipe, pure: true }); MyOtherPipe.ɵprov = i0.ɵɵdefineInjectable({ token: MyOtherPipe, factory: MyOtherPipe.ɵfac }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyOtherPipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyOtherPipe, [{ type: Pipe, args: [{ name: 'myOtherPipe' }] }, { @@ -324,7 +324,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: '{{0 | myPipe | myOtherPipe}}', isInline: true }, pipes: { "myOtherPipe": MyOtherPipe, "myPipe": MyPipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', template: '{{0 | myPipe | myOtherPipe}}' }] }], null, null); })(); @@ -333,7 +333,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); }, providers: [Service] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyPipe, MyOtherPipe, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyPipe, MyOtherPipe, MyApp], providers: [Service] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js index 408fcc0c65..3767837fd4 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js @@ -7,7 +7,7 @@ export class I18nDirective { } I18nDirective.ɵfac = function I18nDirective_Factory(t) { return new (t || I18nDirective)(); }; I18nDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: I18nDirective, selector: "[i18n]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(I18nDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(I18nDirective, [{ type: Directive, args: [{ selector: '[i18n]' }] }], null, null); })(); @@ -15,7 +15,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: '
' }] }], null, null); })(); @@ -24,7 +24,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [I18nDirective, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [I18nDirective, MyComponent] }] }], null, null); })(); @@ -55,7 +55,7 @@ export class I18nDirective { } I18nDirective.ɵfac = function I18nDirective_Factory(t) { return new (t || I18nDirective)(); }; I18nDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: I18nDirective, selector: "[i18n]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(I18nDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(I18nDirective, [{ type: Directive, args: [{ selector: '[i18n]' }] }], null, null); })(); @@ -63,7 +63,7 @@ export class I18nFooDirective { } I18nFooDirective.ɵfac = function I18nFooDirective_Factory(t) { return new (t || I18nFooDirective)(); }; I18nFooDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: I18nFooDirective, selector: "[i18n-foo]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(I18nFooDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(I18nFooDirective, [{ type: Directive, args: [{ selector: '[i18n-foo]' }] }], null, null); })(); @@ -71,7 +71,7 @@ export class FooDirective { } FooDirective.ɵfac = function FooDirective_Factory(t) { return new (t || FooDirective)(); }; FooDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: FooDirective, selector: "[foo]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(FooDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FooDirective, [{ type: Directive, args: [{ selector: '[foo]' }] }], null, null); })(); @@ -79,7 +79,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: '
' }] }], null, null); })(); @@ -88,7 +88,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [I18nDirective, I18nFooDirective, FooDirective, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [I18nDirective, I18nFooDirective, FooDirective, MyComponent] }] }], null, null); })(); @@ -127,7 +127,7 @@ export class SomeDirective { } SomeDirective.ɵfac = function SomeDirective_Factory(t) { return new (t || SomeDirective)(); }; SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SomeDirective, selector: "[someDirective]", inputs: { someDirective: "someDirective" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeDirective, [{ type: Directive, args: [{ selector: '[someDirective]' }] }], null, { someDirective: [{ @@ -137,7 +137,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '
', isInline: true }, directives: [{ type: SomeDirective, selector: "[someDirective]", inputs: ["someDirective"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: '
' }] }], null, null); })(); @@ -146,7 +146,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [SomeDirective, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [SomeDirective, MyComponent] }] }], null, null); })(); @@ -178,7 +178,7 @@ export class DirectiveA { } DirectiveA.ɵfac = function DirectiveA_Factory(t) { return new (t || DirectiveA)(); }; DirectiveA.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: DirectiveA, selector: "ng-template[directiveA]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(DirectiveA, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DirectiveA, [{ type: Directive, args: [{ selector: 'ng-template[directiveA]' }] }], null, null); })(); @@ -188,7 +188,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ` Some content `, isInline: true }, directives: [{ type: DirectiveA, selector: "ng-template[directiveA]" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -202,7 +202,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [DirectiveA, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [DirectiveA, MyComponent] }] }], null, null); })(); @@ -233,7 +233,7 @@ export class DirectiveA { } DirectiveA.ɵfac = function DirectiveA_Factory(t) { return new (t || DirectiveA)(); }; DirectiveA.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: DirectiveA, selector: "ng-container[directiveA]", ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(DirectiveA, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DirectiveA, [{ type: Directive, args: [{ selector: 'ng-container[directiveA]' }] }], null, null); })(); @@ -243,7 +243,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ` Some content `, isInline: true }, directives: [{ type: DirectiveA, selector: "ng-container[directiveA]" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -257,7 +257,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [DirectiveA, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [DirectiveA, MyComponent] }] }], null, null); })(); @@ -288,7 +288,7 @@ export class SomeDirective { } SomeDirective.ɵfac = function SomeDirective_Factory(t) { return new (t || SomeDirective)(); }; SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SomeDirective, selector: "[someDirective]", inputs: { someDirective: "someDirective" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeDirective, [{ type: Directive, args: [{ selector: '[someDirective]' }] }], null, { someDirective: [{ @@ -298,7 +298,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '', isInline: true }, directives: [{ type: SomeDirective, selector: "[someDirective]", inputs: ["someDirective"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -310,7 +310,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [SomeDirective, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [SomeDirective, MyComponent] }] }], null, null); })(); @@ -342,7 +342,7 @@ export class SomeDirective { } SomeDirective.ɵfac = function SomeDirective_Factory(t) { return new (t || SomeDirective)(); }; SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SomeDirective, selector: "[someDirective]", inputs: { someDirective: "someDirective" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeDirective, [{ type: Directive, args: [{ selector: '[someDirective]' }] }], null, { someDirective: [{ @@ -352,7 +352,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '
', isInline: true }, directives: [{ type: SomeDirective, selector: "[someDirective]", inputs: ["someDirective"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: '
' }] }], null, null); })(); @@ -361,7 +361,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [SomeDirective, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [SomeDirective, MyComponent] }] }], null, null); })(); @@ -396,7 +396,7 @@ export class SomeDirective { } SomeDirective.ɵfac = function SomeDirective_Factory(t) { return new (t || SomeDirective)(); }; SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: SomeDirective, selector: "[someDirective]", outputs: { someDirective: "someDirective" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeDirective, [{ type: Directive, args: [{ selector: '[someDirective]' }] }], null, { someDirective: [{ @@ -407,7 +407,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '
', isInline: true }, directives: [{ type: SomeDirective, selector: "[someDirective]", outputs: ["someDirective"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: '
' }] }], null, null); })(); @@ -416,7 +416,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [SomeDirective, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [SomeDirective, MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/GOLDEN_PARTIAL.js index f7a1eef67d..0db9de41a2 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/GOLDEN_PARTIAL.js @@ -16,7 +16,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
Content G
Content H
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -37,7 +37,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -66,7 +66,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ` `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -80,7 +80,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -112,7 +112,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ` Test `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -126,7 +126,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -159,7 +159,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ` `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -173,7 +173,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -202,7 +202,7 @@ export class UppercasePipe { } UppercasePipe.ɵfac = function UppercasePipe_Factory(t) { return new (t || UppercasePipe)(); }; UppercasePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "uppercase", type: UppercasePipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UppercasePipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UppercasePipe, [{ type: Pipe, args: [{ name: 'uppercase' }] }], null, null); })(); @@ -215,7 +215,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ` `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -229,7 +229,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [UppercasePipe, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [UppercasePipe, MyComponent] }] }], null, null); })(); @@ -264,7 +264,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -278,7 +278,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -314,7 +314,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty [attr.label]="label" i18n-attr.label> `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -331,7 +331,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -362,7 +362,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -376,7 +376,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -404,7 +404,7 @@ export class UppercasePipe { } UppercasePipe.ɵfac = function UppercasePipe_Factory(t) { return new (t || UppercasePipe)(); }; UppercasePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "uppercase", type: UppercasePipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UppercasePipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UppercasePipe, [{ type: Pipe, args: [{ name: 'uppercase' }] }], null, null); })(); @@ -412,7 +412,7 @@ export class DivDir { } DivDir.ɵfac = function DivDir_Factory(t) { return new (t || DivDir)(); }; DivDir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: DivDir, selector: "div", inputs: { al: ["aria-label", "al"], arl: ["aria-roledescription", "arl"] }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(DivDir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DivDir, [{ type: Directive, args: [{ selector: 'div' }] }], null, { al: [{ @@ -436,7 +436,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty i18n-aria-roledescription aria-roledescription="{{ valueC }}" > `, isInline: true }, directives: [{ type: DivDir, selector: "div", inputs: ["aria-label", "aria-roledescription"] }], pipes: { "uppercase": UppercasePipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -458,7 +458,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [UppercasePipe, MyComponent, DivDir] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [UppercasePipe, MyComponent, DivDir] }] }], null, null); })(); @@ -500,7 +500,7 @@ export class UppercasePipe { } UppercasePipe.ɵfac = function UppercasePipe_Factory(t) { return new (t || UppercasePipe)(); }; UppercasePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "uppercase", type: UppercasePipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UppercasePipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UppercasePipe, [{ type: Pipe, args: [{ name: 'uppercase' }] }], null, null); })(); @@ -513,7 +513,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true }, pipes: { "uppercase": UppercasePipe }, interpolation: ["{%", "%}"] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -528,7 +528,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [UppercasePipe, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [UppercasePipe, MyComponent] }] }], null, null); })(); @@ -562,7 +562,7 @@ export class UppercasePipe { } UppercasePipe.ɵfac = function UppercasePipe_Factory(t) { return new (t || UppercasePipe)(); }; UppercasePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "uppercase", type: UppercasePipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UppercasePipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UppercasePipe, [{ type: Pipe, args: [{ name: 'uppercase' }] }], null, null); })(); @@ -577,7 +577,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true }, pipes: { "uppercase": UppercasePipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -593,7 +593,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [UppercasePipe, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [UppercasePipe, MyComponent] }] }], null, null); })(); @@ -628,7 +628,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -642,7 +642,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -672,7 +672,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -686,7 +686,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -716,7 +716,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
Some content
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -730,7 +730,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -761,7 +761,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty Some content `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -777,7 +777,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/GOLDEN_PARTIAL.js index 9d581d2033..6417e0327a 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/GOLDEN_PARTIAL.js @@ -11,7 +11,7 @@ var MyComponent = /** @class */ (function () { return MyComponent; }()); export { MyComponent }; -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -27,7 +27,7 @@ var MyModule = /** @class */ (function () { }()); export { MyModule }; (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/GOLDEN_PARTIAL.js index d2078d1b0e..a90a9cb215 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/GOLDEN_PARTIAL.js @@ -12,7 +12,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
{gender, select, male {male} female {female} other {other}}
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -26,7 +26,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -59,7 +59,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
{gender, select, single {'single quotes'} double {"double quotes"} other {other}}
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -73,7 +73,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -106,7 +106,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ` {age, select, 10 {ten} 20 {twenty} other {other}} `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -120,7 +120,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -159,7 +159,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty You have {count, select, 0 {no emails} 1 {one email} other {{{count}} emails}}. `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -179,7 +179,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -213,7 +213,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
{age, select, 10 {ten} 20 {twenty} other {{% other %}}}
`, isInline: true }, interpolation: ["{%", "%}"] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -228,7 +228,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -266,7 +266,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
Another content
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -284,7 +284,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -320,7 +320,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
{gender, select, male {male of age: {{ ageA + ageB + ageC }}} female {female} other {other}}
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -334,7 +334,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -374,7 +374,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty {age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}} `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -391,7 +391,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -433,7 +433,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -455,7 +455,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -495,7 +495,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty } `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -515,7 +515,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -557,7 +557,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty other {other - {{count}}} } `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -578,7 +578,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -617,7 +617,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -636,7 +636,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -676,7 +676,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -695,7 +695,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -739,7 +739,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty other {other {{ age // i18n(ph="PH WITH SPACES") }}} } `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -759,7 +759,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -795,7 +795,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
{count, select, 1 {one} other {more than one}}
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -809,7 +809,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -845,7 +845,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty {count, plural , =1 {one} other {more than one}} `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -862,7 +862,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/GOLDEN_PARTIAL.js index edf9cd46b6..f4d6f065a4 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/GOLDEN_PARTIAL.js @@ -17,7 +17,7 @@ Some Message zero } }`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -41,7 +41,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -79,7 +79,7 @@ Some Message zero } }`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -103,7 +103,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -131,7 +131,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: "\n
\r\nSome Message\r\n{\r\n value,\r\n select,\r\n =0 {\r\n zero\r\n }\r\n}
", isInline: false } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -145,7 +145,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -173,7 +173,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: "\n
\r\nSome Message\r\n{\r\n value,\r\n select,\r\n =0 {\r\n zero\r\n }\r\n}
", isInline: false } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -187,7 +187,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -225,7 +225,7 @@ Some Message zero } }`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -249,7 +249,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -287,7 +287,7 @@ Some Message zero } }`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -311,7 +311,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -339,7 +339,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: "\n
\r\nSome Message\r\n{\r\n value,\r\n select,\r\n =0 {\r\n zero\r\n }\r\n}
", isInline: false } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -353,7 +353,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -381,7 +381,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: "\n
\r\nSome Message\r\n{\r\n value,\r\n select,\r\n =0 {\r\n zero\r\n }\r\n}
", isInline: false } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -395,7 +395,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/GOLDEN_PARTIAL.js index f8237ef9ef..09f1927a9e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/GOLDEN_PARTIAL.js @@ -9,7 +9,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
Some Message
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -23,7 +23,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -52,7 +52,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
Some Message
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -66,7 +66,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/GOLDEN_PARTIAL.js index 0692f46197..2a4a71ef52 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/GOLDEN_PARTIAL.js @@ -15,7 +15,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -35,7 +35,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -70,7 +70,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -90,7 +90,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/GOLDEN_PARTIAL.js index e8ea000656..5321a1aaa6 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/GOLDEN_PARTIAL.js @@ -13,7 +13,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -31,7 +31,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -60,7 +60,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
Some text
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -74,7 +74,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -103,7 +103,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
Some text 'with single quotes', "with double quotes", \`with backticks\` and without quotes.
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -117,7 +117,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -147,7 +147,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '
`{{ count }}`
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -159,7 +159,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -193,7 +193,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
My non-i18n block #2
My i18n block #3
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -211,7 +211,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -247,7 +247,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty Named interpolation with spaces: {{ valueB // i18n(ph="PH B") }} `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -264,7 +264,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -298,7 +298,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
{% valueA %}
`, isInline: true }, interpolation: ["{%", "%}"] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -313,7 +313,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -342,7 +342,7 @@ export class AsyncPipe { } AsyncPipe.ɵfac = function AsyncPipe_Factory(t) { return new (t || AsyncPipe)(); }; AsyncPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "async", type: AsyncPipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AsyncPipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AsyncPipe, [{ type: Pipe, args: [{ name: 'async' }] }], null, null); })(); @@ -356,7 +356,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty {{ valueA.getRawValue()?.getTitle() }} `, isInline: true }, pipes: { "async": AsyncPipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -374,7 +374,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, AsyncPipe] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, AsyncPipe] }] }], null, null); })(); @@ -408,7 +408,7 @@ export class UppercasePipe { } UppercasePipe.ɵfac = function UppercasePipe_Factory(t) { return new (t || UppercasePipe)(); }; UppercasePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "uppercase", type: UppercasePipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UppercasePipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UppercasePipe, [{ type: Pipe, args: [{ name: 'uppercase' }] }], null, null); })(); @@ -427,7 +427,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
My i18n block #{{ two | uppercase }}
My i18n block #{{ three + four + five }}
`, isInline: true }, pipes: { "uppercase": UppercasePipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -443,7 +443,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, UppercasePipe] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, UppercasePipe] }] }], null, null); })(); @@ -481,7 +481,7 @@ export class UppercasePipe { } UppercasePipe.ɵfac = function UppercasePipe_Factory(t) { return new (t || UppercasePipe)(); }; UppercasePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "uppercase", type: UppercasePipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UppercasePipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UppercasePipe, [{ type: Pipe, args: [{ name: 'uppercase' }] }], null, null); })(); @@ -509,7 +509,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true }, pipes: { "uppercase": UppercasePipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -536,7 +536,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, UppercasePipe] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, UppercasePipe] }] }], null, null); })(); @@ -572,7 +572,7 @@ export class UppercasePipe { } UppercasePipe.ɵfac = function UppercasePipe_Factory(t) { return new (t || UppercasePipe)(); }; UppercasePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "uppercase", type: UppercasePipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UppercasePipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UppercasePipe, [{ type: Pipe, args: [{ name: 'uppercase' }] }], null, null); })(); @@ -593,7 +593,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true }, pipes: { "uppercase": UppercasePipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -618,7 +618,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [UppercasePipe, MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [UppercasePipe, MyComponent] }] }], null, null); })(); @@ -667,7 +667,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -691,7 +691,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -722,7 +722,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -738,7 +738,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -787,7 +787,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -821,7 +821,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -850,7 +850,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
Some other content {{ valueA }}
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -864,7 +864,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -894,7 +894,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
Hello
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -908,7 +908,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/GOLDEN_PARTIAL.js index 7e372a2f9d..eabbd42dc0 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/GOLDEN_PARTIAL.js @@ -8,7 +8,7 @@ export class UppercasePipe { } UppercasePipe.ɵfac = function UppercasePipe_Factory(t) { return new (t || UppercasePipe)(); }; UppercasePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "uppercase", type: UppercasePipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UppercasePipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UppercasePipe, [{ type: Pipe, args: [{ name: 'uppercase' }] }], null, null); })(); @@ -21,7 +21,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ` Some content: {{ valueA | uppercase }} `, isInline: true }, pipes: { "uppercase": UppercasePipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -35,7 +35,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, UppercasePipe] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, UppercasePipe] }] }], null, null); })(); @@ -70,7 +70,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ` Some content: {{ valueA | uppercase }} `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -84,7 +84,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -112,7 +112,7 @@ export class UppercasePipe { } UppercasePipe.ɵfac = function UppercasePipe_Factory(t) { return new (t || UppercasePipe)(); }; UppercasePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "uppercase", type: UppercasePipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UppercasePipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UppercasePipe, [{ type: Pipe, args: [{ name: 'uppercase' }] }], null, null); })(); @@ -129,7 +129,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty Container content: {{ valueB | uppercase }} `, isInline: true }, pipes: { "uppercase": UppercasePipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -146,7 +146,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, UppercasePipe] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, UppercasePipe] }] }], null, null); })(); @@ -186,7 +186,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty {gender, select, male {male} female {female} other {other}} {age, select, 10 {ten} 20 {twenty} other {other}} `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -201,7 +201,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -241,7 +241,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -265,7 +265,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -298,7 +298,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty {gender, select, male {male} female {female} other {other}} {age, select, 10 {ten} 20 {twenty} other {other}} `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -313,7 +313,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -348,7 +348,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty is my logo #2 `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -367,7 +367,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -397,7 +397,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
Test
Test
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -412,7 +412,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -443,7 +443,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty Hello there `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -459,7 +459,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -490,7 +490,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty Hello there ! `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -506,7 +506,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -536,7 +536,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty Content A Content B `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -551,7 +551,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/GOLDEN_PARTIAL.js index 7f5095090f..d53d532399 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/GOLDEN_PARTIAL.js @@ -9,7 +9,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
My i18n block #1
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -23,7 +23,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -55,7 +55,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
{age, select, 10 {ten} 20 {twenty} other {other}}
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -69,7 +69,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -100,7 +100,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty My i18n block #1 My i18n block #2 `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -115,7 +115,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -145,7 +145,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty Text #1 Text #2 `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -160,7 +160,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/GOLDEN_PARTIAL.js index 4be3f79c36..bf625c30ca 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/GOLDEN_PARTIAL.js @@ -12,7 +12,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty Text inside span `, isInline: true }, preserveWhitespaces: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -30,7 +30,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/GOLDEN_PARTIAL.js index 7a8cb4cb9f..67998fd0db 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/GOLDEN_PARTIAL.js @@ -7,7 +7,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", inputs: { componentInput: "componentInput", originalComponentInput: ["renamedComponentInput", "originalComponentInput"] }, outputs: { componentOutput: "componentOutput", originalComponentOutput: "renamedComponentOutput" }, ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: '' }] }], null, { componentInput: [{ @@ -26,7 +26,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -57,7 +57,7 @@ export class MyDirective { } MyDirective.ɵfac = function MyDirective_Factory(t) { return new (t || MyDirective)(); }; MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: MyDirective, selector: "[my-directive]", inputs: { directiveInput: "directiveInput", originalDirectiveInput: ["renamedDirectiveInput", "originalDirectiveInput"] }, outputs: { directiveOutput: "directiveOutput", originalDirectiveOutput: "renamedDirectiveOutput" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyDirective, [{ type: Directive, args: [{ selector: '[my-directive]' }] }], null, { directiveInput: [{ @@ -76,7 +76,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyDirective] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyDirective] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js index 684be802ac..6509ddf7aa 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js @@ -8,7 +8,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: `
` }] }], null, null); })(); @@ -17,7 +17,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -45,7 +45,7 @@ export class MyApp { } MyApp.ɵfac = function MyApp_Factory(t) { return new (t || MyApp)(); }; MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: { source: `
My App
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyApp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ type: Component, args: [{ selector: 'my-app', template: `
My App
` }] }], null, null); })(); @@ -54,7 +54,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ``, isInline: true }, directives: [{ type: MyApp, selector: "my-app" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: `` }] }], null, null); })(); @@ -63,7 +63,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, MyApp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, MyApp] }] }], null, null); })(); @@ -102,7 +102,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -119,7 +119,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -152,7 +152,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -167,7 +167,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -197,7 +197,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -209,7 +209,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -242,7 +242,7 @@ export class SomeComp { } SomeComp.ɵfac = function SomeComp_Factory(t) { return new (t || SomeComp)(); }; SomeComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: SomeComp, selector: "some-comp", outputs: { update: "update", delete: "delete" }, ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SomeComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SomeComp, [{ type: Component, args: [{ selector: 'some-comp', @@ -264,7 +264,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true }, directives: [{ type: SomeComp, selector: "some-comp", outputs: ["update", "delete"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -279,7 +279,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, SomeComp] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, SomeComp] }] }], null, null); })(); @@ -317,7 +317,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ``, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -329,7 +329,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -357,7 +357,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "ng-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: `
` }] }], null, null); })(); @@ -384,7 +384,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "ng-component", host: { listeners: { "mousedown": "mousedown()", "click": "click()" } }, ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: '', @@ -419,7 +419,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: MyComponent, host: { listeners: { "click": "click($event.target)" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Directive }], null, { click: [{ type: HostListener, @@ -446,7 +446,7 @@ class Comp { } Comp.ɵfac = function Comp_Factory(t) { return new (t || Comp)(); }; Comp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: Comp, selector: "ng-component", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Comp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Comp, [{ type: Component, args: [{ template: '
' }] }], null, null); })(); @@ -469,7 +469,7 @@ class Comp { } Comp.ɵfac = function Comp_Factory(t) { return new (t || Comp)(); }; Comp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: Comp, selector: "ng-component", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Comp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Comp, [{ type: Component, args: [{ template: '
' }] }], null, null); })(); @@ -488,7 +488,7 @@ export class DivDir { } DivDir.ɵfac = function DivDir_Factory(t) { return new (t || DivDir)(); }; DivDir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: DivDir, selector: "div", inputs: { event: "event" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(DivDir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DivDir, [{ type: Directive, args: [{ selector: 'div' }] }], null, { event: [{ @@ -501,7 +501,7 @@ class Comp { } Comp.ɵfac = function Comp_Factory(t) { return new (t || Comp)(); }; Comp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: Comp, selector: "ng-component", ngImport: i0, template: { source: '
', isInline: true }, directives: [{ type: DivDir, selector: "div", inputs: ["event"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Comp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Comp, [{ type: Component, args: [{ template: '
' }] }], null, null); })(); @@ -510,7 +510,7 @@ export class MyMod { MyMod.ɵmod = i0.ɵɵdefineNgModule({ type: MyMod }); MyMod.ɵinj = i0.ɵɵdefineInjector({ factory: function MyMod_Factory(t) { return new (t || MyMod)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyMod, { declarations: [Comp, DivDir] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyMod, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyMod, [{ type: NgModule, args: [{ declarations: [Comp, DivDir] }] }], null, null); })(); @@ -539,7 +539,7 @@ class Dir { } Dir.ɵfac = function Dir_Factory(t) { return new (t || Dir)(); }; Dir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: Dir, host: { listeners: { "click": "c($event)" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Dir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Dir, [{ type: Directive, args: [{ host: { '(click)': 'c($event)' } }] }], null, null); })(); @@ -562,7 +562,7 @@ class Dir { } Dir.ɵfac = function Dir_Factory(t) { return new (t || Dir)(); }; Dir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: Dir, host: { listeners: { "click": "c(this.$event)" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Dir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Dir, [{ type: Directive, args: [{ host: { diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/GOLDEN_PARTIAL.js index 2340cb0f5f..4d82e6a67f 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/GOLDEN_PARTIAL.js @@ -14,7 +14,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", providers: [GreeterEN, { provide: Greeter, useClass: GreeterEN }], ngImport: i0, template: { source: '
', isInline: true }, viewProviders: [GreeterEN] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -28,7 +28,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -62,7 +62,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", providers: [GreeterEN, { provide: Greeter, useClass: GreeterEN }], ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -75,7 +75,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -109,7 +109,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '
', isInline: true }, viewProviders: [GreeterEN] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: '
', viewProviders: [GreeterEN] }] }], null, null); })(); @@ -118,7 +118,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -145,7 +145,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: '
' }] }], null, null); })(); @@ -154,7 +154,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/GOLDEN_PARTIAL.js index a684c01e7f..913dd682b0 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/GOLDEN_PARTIAL.js @@ -14,7 +14,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", inputs: { name: "name" }, host: { attributes: { "title": "foo title" }, properties: { "style": "myStyle", "class": "myClass", "id": "id", "title": "title" }, styleAttribute: "width:200px; height:500px", classAttribute: "foo baz" }, ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -42,7 +42,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -84,7 +84,7 @@ export class WidthDirective { } WidthDirective.ɵfac = function WidthDirective_Factory(t) { return new (t || WidthDirective)(); }; WidthDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: WidthDirective, selector: "[myWidthDir]", host: { properties: { "style.width": "myWidth", "class.foo": "myFooClass", "id": "id", "title": "title" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(WidthDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WidthDirective, [{ type: Directive, args: [{ selector: '[myWidthDir]' }] }], null, { myWidth: [{ @@ -130,7 +130,7 @@ export class MyDir { } MyDir.ɵfac = function MyDir_Factory(t) { return new (t || MyDir)(); }; MyDir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: MyDir, selector: "[my-dir]", host: { properties: { "title": "title", "class.foo": "foo", "@anim": "{\n value: _animValue,\n params: {\n param1: _animParam1,\n param2: _animParam2\n }\n }" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyDir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyDir, [{ type: Directive, args: [{ selector: '[my-dir]', @@ -153,7 +153,7 @@ MyAppComp.ɵfac = function MyAppComp_Factory(t) { return new (t || MyAppComp)(); MyAppComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyAppComp, selector: "my-app", ngImport: i0, template: { source: `
`, isInline: true }, directives: [{ type: MyDir, selector: "[my-dir]" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyAppComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyAppComp, [{ type: Component, args: [{ selector: 'my-app', @@ -167,7 +167,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyAppComp, MyDir] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyAppComp, MyDir] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/GOLDEN_PARTIAL.js index f5fe80662f..f8d0ec57e2 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/GOLDEN_PARTIAL.js @@ -15,7 +15,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty [class.apple]="yesToApple" [class.orange]="yesToOrange" [class.tomato]="yesToTomato">`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: `
` }] }], null, null); })(); @@ -19,7 +19,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -59,7 +59,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty [class.apple]="yesToApple" [class]="myClassExp" [class.orange]="yesToOrange">`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -76,7 +76,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -113,7 +113,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty style="width:100px" [attr.class]="'round'" [attr.style]="'height:100px'">`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -129,7 +129,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -156,7 +156,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: `
` }] }], null, null); })(); @@ -165,7 +165,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/GOLDEN_PARTIAL.js index aa2d8fb15b..fcf99037fd 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/GOLDEN_PARTIAL.js @@ -7,7 +7,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '', isInline: true }, animations: [{ name: 'foo123' }, { name: 'trigger123' }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', animations: [{ name: 'foo123' }, { name: 'trigger123' }], template: '' }] }], null, null); })(); @@ -16,7 +16,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -43,7 +43,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '', isInline: true }, animations: [] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', animations: [], template: '' }] }], null, null); })(); @@ -52,7 +52,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -85,7 +85,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -100,7 +100,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -143,7 +143,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty transition('* => state', [style({ 'opacity': '0' }), animate(500, style({ 'opacity': '1' }))]), ]), ] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-cmp', @@ -165,7 +165,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -193,7 +193,7 @@ class MyAnimDir { } MyAnimDir.ɵfac = function MyAnimDir_Factory(t) { return new (t || MyAnimDir)(); }; MyAnimDir.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: MyAnimDir, selector: "[my-anim-dir]", host: { listeners: { "@myAnim.start": "onStart()", "@myAnim.done": "onDone()" }, properties: { "@myAnim": "myAnimState" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyAnimDir, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyAnimDir, [{ type: Directive, args: [{ selector: '[my-anim-dir]', @@ -206,7 +206,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-cmp", ngImport: i0, template: { source: `
`, isInline: true }, directives: [{ type: MyAnimDir, selector: "[my-anim-dir]" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-cmp', @@ -220,7 +220,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, MyAnimDir] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, MyAnimDir] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/GOLDEN_PARTIAL.js index be1cae8ac4..50a06b5eab 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/GOLDEN_PARTIAL.js @@ -7,7 +7,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '...', isInline: true }, styles: ["div.foo { color: red; }", ":host p:nth-child(even) { --webkit-transition: 1s linear all; }"] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -22,7 +22,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -49,7 +49,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '...', isInline: true }, styles: ["div.tall { height: 123px; }", ":host.small p { height:5px; }"], encapsulation: i0.ViewEncapsulation.None }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -63,7 +63,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -90,7 +90,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '...', isInline: true }, styles: ["div.cool { color: blue; }", ":host.nice p { color: gold; }"], encapsulation: i0.ViewEncapsulation.ShadowDom }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ encapsulation: ViewEncapsulation.ShadowDom, @@ -104,7 +104,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js index 744e86c7eb..db6b05408e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js @@ -13,7 +13,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", host: { properties: { "style": "myStyle", "class": "myClass", "style.color": "myColorProp", "class.foo": "myFooClass" }, styleAttribute: "width:200px; height:500px", classAttribute: "foo baz" }, ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -38,7 +38,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -81,7 +81,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", host: { properties: { "style.height.pt": "myHeightProp", "class.bar": "myBarClass", "style": "myStyle", "style.width": "myWidthProp", "class.foo": "myFooClass", "class": "myClasses" } }, ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -106,7 +106,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -153,7 +153,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -175,7 +175,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -229,7 +229,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -251,7 +251,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -308,7 +308,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -330,7 +330,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -369,7 +369,7 @@ export class ClassDirective { } ClassDirective.ɵfac = function ClassDirective_Factory(t) { return new (t || ClassDirective)(); }; ClassDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: ClassDirective, selector: "[myClassDir]", host: { properties: { "class": "myClassMap" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ClassDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClassDirective, [{ type: Directive, args: [{ selector: '[myClassDir]' }] }], null, { myClassMap: [{ @@ -384,7 +384,7 @@ export class WidthDirective { } WidthDirective.ɵfac = function WidthDirective_Factory(t) { return new (t || WidthDirective)(); }; WidthDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: WidthDirective, selector: "[myWidthDir]", host: { properties: { "style.width": "myWidth", "class.foo": "myFooClass" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(WidthDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WidthDirective, [{ type: Directive, args: [{ selector: '[myWidthDir]' }] }], null, { myWidth: [{ @@ -402,7 +402,7 @@ export class HeightDirective { } HeightDirective.ɵfac = function HeightDirective_Factory(t) { return new (t || HeightDirective)(); }; HeightDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: HeightDirective, selector: "[myHeightDir]", host: { properties: { "style.height": "myHeight", "class.bar": "myBarClass" } }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(HeightDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HeightDirective, [{ type: Directive, args: [{ selector: '[myHeightDir]' }] }], null, { myHeight: [{ @@ -416,7 +416,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '
', isInline: true }, directives: [{ type: WidthDirective, selector: "[myWidthDir]" }, { type: HeightDirective, selector: "[myHeightDir]" }, { type: ClassDirective, selector: "[myClassDir]" }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -428,7 +428,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, WidthDirective, HeightDirective, ClassDirective] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, WidthDirective, HeightDirective, ClassDirective] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/GOLDEN_PARTIAL.js index ad7e344f36..bf5ad4c210 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/GOLDEN_PARTIAL.js @@ -29,7 +29,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: ` @@ -96,7 +96,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: ` @@ -147,7 +147,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "ng-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: ` @@ -188,7 +188,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty style.borderImage="url({{ myUrl2 }}) {{ myRepeat }} auto" style.boxShadow="{{ myBoxX }} {{ myBoxY }} {{ myBoxWidth }} black"> `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: ` @@ -229,7 +229,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "ng-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: ` diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/invalid/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/invalid/GOLDEN_PARTIAL.js index 31280b85b1..261f09013f 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/invalid/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/invalid/GOLDEN_PARTIAL.js @@ -10,7 +10,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "ng-component", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ template: '
' }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/GOLDEN_PARTIAL.js index 7c96d7c9e7..856636371f 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/GOLDEN_PARTIAL.js @@ -11,7 +11,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: `
` }] }], null, null); })(); @@ -20,7 +20,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -56,7 +56,7 @@ export class StylePipe { } StylePipe.ɵfac = function StylePipe_Factory(t) { return new (t || StylePipe)(); }; StylePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "stylePipe", type: StylePipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(StylePipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StylePipe, [{ type: Pipe, args: [{ name: 'stylePipe' }] }], null, null); })(); @@ -65,7 +65,7 @@ export class ClassPipe { } ClassPipe.ɵfac = function ClassPipe_Factory(t) { return new (t || ClassPipe)(); }; ClassPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "classPipe", type: ClassPipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ClassPipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClassPipe, [{ type: Pipe, args: [{ name: 'classPipe' }] }], null, null); })(); @@ -77,7 +77,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true }, pipes: { "stylePipe": StylePipe, "classPipe": ClassPipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -89,7 +89,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, StylePipe, ClassPipe] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, StylePipe, ClassPipe] }] }], null, null); })(); @@ -135,7 +135,7 @@ export class PipePipe { } PipePipe.ɵfac = function PipePipe_Factory(t) { return new (t || PipePipe)(); }; PipePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "pipe", type: PipePipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PipePipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PipePipe, [{ type: Pipe, args: [{ name: 'pipe' }] }], null, null); })(); @@ -157,7 +157,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty [style.bar]="barExp | pipe:3000" [style.baz]="bazExp | pipe:4000"> {{ item }}`, isInline: true }, pipes: { "pipe": PipePipe } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -175,7 +175,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, PipePipe] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent, PipePipe] }] }], null, null); })(); @@ -224,7 +224,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -241,7 +241,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js index 95c36ece42..0021cc5167 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js @@ -10,7 +10,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: `
` }] }], null, null); })(); @@ -19,7 +19,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -58,7 +58,7 @@ MyComponentWithInterpolation.ɵfac = function MyComponentWithInterpolation_Facto MyComponentWithInterpolation.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponentWithInterpolation, selector: "my-component-with-interpolation", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponentWithInterpolation, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponentWithInterpolation, [{ type: Component, args: [{ selector: 'my-component-with-interpolation', @@ -77,7 +77,7 @@ MyComponentWithMuchosInterpolation.ɵfac = function MyComponentWithMuchosInterpo MyComponentWithMuchosInterpolation.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponentWithMuchosInterpolation, selector: "my-component-with-muchos-interpolation", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponentWithMuchosInterpolation, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponentWithMuchosInterpolation, [{ type: Component, args: [{ selector: 'my-component-with-muchos-interpolation', @@ -95,7 +95,7 @@ MyComponentWithoutInterpolation.ɵfac = function MyComponentWithoutInterpolation MyComponentWithoutInterpolation.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponentWithoutInterpolation, selector: "my-component-without-interpolation", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponentWithoutInterpolation, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponentWithoutInterpolation, [{ type: Component, args: [{ selector: 'my-component-without-interpolation', @@ -109,7 +109,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponentWithInterpolation, MyComponentWithMuchosInterpolation, MyComponentWithoutInterpolation] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [ @@ -162,7 +162,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty [style.width]="myWidth" [style]="myStyleExp" [style.height]="myHeight">`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -178,7 +178,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -217,7 +217,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: `
` }] }], null, null); })(); @@ -226,7 +226,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -254,7 +254,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: `
` }] }], null, null); })(); @@ -263,7 +263,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -290,7 +290,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', template: `
` }] }], null, null); })(); @@ -299,7 +299,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/GOLDEN_PARTIAL.js index ac642d3f3c..779061bd66 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/GOLDEN_PARTIAL.js @@ -22,7 +22,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -44,7 +44,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -80,7 +80,7 @@ MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyCompone MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -94,7 +94,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -127,7 +127,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -142,7 +142,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -174,7 +174,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty {{ i }} - {{ item }} `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -190,7 +190,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -222,7 +222,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty {{ i }} - {{ item }} `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -239,7 +239,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -273,7 +273,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -292,7 +292,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -322,7 +322,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty some-content `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -337,7 +337,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -364,7 +364,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: 'some-content', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -376,7 +376,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -403,7 +403,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -415,7 +415,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -445,7 +445,7 @@ class WithInput { } WithInput.ɵfac = function WithInput_Factory(t) { return new (t || WithInput)(); }; WithInput.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: WithInput, selector: "[dir]", inputs: { dir: "dir" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(WithInput, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WithInput, [{ type: Directive, args: [{ selector: '[dir]' }] }], null, { dir: [{ @@ -458,7 +458,7 @@ export class TestComp { } TestComp.ɵfac = function TestComp_Factory(t) { return new (t || TestComp)(); }; TestComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestComp, selector: "my-app", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestComp, [{ type: Component, args: [{ selector: 'my-app', @@ -488,7 +488,7 @@ class WithInput { } WithInput.ɵfac = function WithInput_Factory(t) { return new (t || WithInput)(); }; WithInput.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: WithInput, selector: "[dir]", inputs: { dir: "dir" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(WithInput, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WithInput, [{ type: Directive, args: [{ selector: '[dir]' }] }], null, { dir: [{ @@ -501,7 +501,7 @@ export class TestComp { } TestComp.ɵfac = function TestComp_Factory(t) { return new (t || TestComp)(); }; TestComp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestComp, selector: "my-app", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestComp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestComp, [{ type: Component, args: [{ selector: 'my-app', @@ -539,7 +539,7 @@ AComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", typ

more than 10

`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AComponent, [{ type: Component, args: [{ selector: 'a-component', @@ -559,7 +559,7 @@ export class AModule { AModule.ɵmod = i0.ɵɵdefineNgModule({ type: AModule }); AModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AModule_Factory(t) { return new (t || AModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AModule, { declarations: [AComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AModule, [{ type: NgModule, args: [{ declarations: [AComponent] }] }], null, null); })(); @@ -588,7 +588,7 @@ BComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", typ `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(BComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BComponent, [{ type: Component, args: [{ selector: 'b-component', @@ -615,7 +615,7 @@ export class BModule { BModule.ɵmod = i0.ɵɵdefineNgModule({ type: BModule }); BModule.ɵinj = i0.ɵɵdefineInjector({ factory: function BModule_Factory(t) { return new (t || BModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(BModule, { declarations: [BComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(BModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BModule, [{ type: NgModule, args: [{ declarations: [BComponent] }] }], null, null); })(); @@ -659,7 +659,7 @@ AComponent.ɵfac = function AComponent_Factory(t) { return new (t || AComponent) AComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: AComponent, selector: "a-component", ngImport: i0, template: { source: ` `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AComponent, [{ type: Component, args: [{ selector: 'a-component', @@ -677,7 +677,7 @@ BComponent.ɵfac = function BComponent_Factory(t) { return new (t || BComponent) BComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: BComponent, selector: "b-component", ngImport: i0, template: { source: ` `, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(BComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BComponent, [{ type: Component, args: [{ selector: 'b-component', @@ -691,7 +691,7 @@ export class AModule { AModule.ɵmod = i0.ɵɵdefineNgModule({ type: AModule }); AModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AModule_Factory(t) { return new (t || AModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AModule, { declarations: [AComponent, BComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AModule, [{ type: NgModule, args: [{ declarations: [AComponent, BComponent] }] }], null, null); })(); @@ -735,7 +735,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty

{{ item }}

`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -755,7 +755,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -783,7 +783,7 @@ export class MyComponent { } MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: `
`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -795,7 +795,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); @@ -823,7 +823,7 @@ export class MyComponent { MyComponent.ɵfac = function MyComponent_Factory(t) { return new (t || MyComponent)(); }; MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyComponent, selector: "my-component", ngImport: i0, template: { source: ` {{a?.b ? 1 : 2 }}`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyComponent, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyComponent, [{ type: Component, args: [{ selector: 'my-component', @@ -836,7 +836,7 @@ export class MyModule { MyModule.ɵmod = i0.ɵɵdefineNgModule({ type: MyModule }); MyModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MyModule_Factory(t) { return new (t || MyModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ type: NgModule, args: [{ declarations: [MyComponent] }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js index 90c7460efe..d188813433 100644 --- a/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js @@ -7,7 +7,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '

Heading 1

', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -18,7 +18,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: simple_element.js.map ****************************************************************************************************/ -{"version":3,"file":"simple_element.js","sourceRoot":"","sources":["../simple_element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,oBAAoB;kDAEnB,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,oBAAoB;aAC/B"} +{"version":3,"file":"simple_element.js","sourceRoot":"","sources":["../simple_element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,oBAAoB;uFAEnB,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,oBAAoB;aAC/B"} /**************************************************************************************************** * PARTIAL FILE: simple_element.d.ts ****************************************************************************************************/ @@ -37,7 +37,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '

Heading 1

', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -48,7 +48,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: simple_element.js.map ****************************************************************************************************/ -{"version":3,"file":"simple_element.js","sourceRoot":"","sources":["../simple_element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,oBAAoB;kDAEnB,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,oBAAoB;aAC/B"} +{"version":3,"file":"simple_element.js","sourceRoot":"","sources":["../simple_element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,oBAAoB;uFAEnB,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,oBAAoB;aAC/B"} /**************************************************************************************************** * PARTIAL FILE: simple_element.d.ts ****************************************************************************************************/ @@ -67,7 +67,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -78,7 +78,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: void_element.js.map ****************************************************************************************************/ -{"version":3,"file":"void_element.js","sourceRoot":"","sources":["../void_element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,MAAM;kDAEL,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,MAAM;aACjB"} +{"version":3,"file":"void_element.js","sourceRoot":"","sources":["../void_element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,MAAM;uFAEL,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,MAAM;aACjB"} /**************************************************************************************************** * PARTIAL FILE: void_element.d.ts ****************************************************************************************************/ @@ -97,7 +97,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -108,7 +108,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: void_element.js.map ****************************************************************************************************/ -{"version":3,"file":"void_element.js","sourceRoot":"","sources":["../void_element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,MAAM;kDAEL,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,MAAM;aACjB"} +{"version":3,"file":"void_element.js","sourceRoot":"","sources":["../void_element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,MAAM;uFAEL,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,MAAM;aACjB"} /**************************************************************************************************** * PARTIAL FILE: void_element.d.ts ****************************************************************************************************/ @@ -130,7 +130,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '

Hello {{ name }}

', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -141,7 +141,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: interpolation_basic.js.map ****************************************************************************************************/ -{"version":3,"file":"interpolation_basic.js","sourceRoot":"","sources":["../interpolation_basic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,2BAA2B;kDAE1B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,2BAA2B;aACtC"} +{"version":3,"file":"interpolation_basic.js","sourceRoot":"","sources":["../interpolation_basic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,2BAA2B;uFAE1B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,2BAA2B;aACtC"} /**************************************************************************************************** * PARTIAL FILE: interpolation_basic.d.ts ****************************************************************************************************/ @@ -164,7 +164,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '

Hello {{ name }}

', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -175,7 +175,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: interpolation_basic.js.map ****************************************************************************************************/ -{"version":3,"file":"interpolation_basic.js","sourceRoot":"","sources":["../interpolation_basic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,2BAA2B;kDAE1B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,2BAA2B;aACtC"} +{"version":3,"file":"interpolation_basic.js","sourceRoot":"","sources":["../interpolation_basic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,2BAA2B;uFAE1B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,2BAA2B;aACtC"} /**************************************************************************************************** * PARTIAL FILE: interpolation_basic.d.ts ****************************************************************************************************/ @@ -199,7 +199,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '

{{ greeting + " " + name }}

', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -210,7 +210,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: interpolation_complex.js.map ****************************************************************************************************/ -{"version":3,"file":"interpolation_complex.js","sourceRoot":"","sources":["../interpolation_complex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,aAAQ,GAAW,EAAE,CAAC;QACtB,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAHY,OAAO;6EAAP,OAAO,0DAFR,sCAAsC;kDAErC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,sCAAsC;aACjD"} +{"version":3,"file":"interpolation_complex.js","sourceRoot":"","sources":["../interpolation_complex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,aAAQ,GAAW,EAAE,CAAC;QACtB,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAHY,OAAO;6EAAP,OAAO,0DAFR,sCAAsC;uFAErC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,sCAAsC;aACjD"} /**************************************************************************************************** * PARTIAL FILE: interpolation_complex.d.ts ****************************************************************************************************/ @@ -235,7 +235,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '

{{ greeting + " " + name }}

', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -246,7 +246,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: interpolation_complex.js.map ****************************************************************************************************/ -{"version":3,"file":"interpolation_complex.js","sourceRoot":"","sources":["../interpolation_complex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,aAAQ,GAAW,EAAE,CAAC;QACtB,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAHY,OAAO;6EAAP,OAAO,0DAFR,sCAAsC;kDAErC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,sCAAsC;aACjD"} +{"version":3,"file":"interpolation_complex.js","sourceRoot":"","sources":["../interpolation_complex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,aAAQ,GAAW,EAAE,CAAC;QACtB,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAHY,OAAO;6EAAP,OAAO,0DAFR,sCAAsC;uFAErC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,sCAAsC;aACjD"} /**************************************************************************************************** * PARTIAL FILE: interpolation_complex.d.ts ****************************************************************************************************/ @@ -270,7 +270,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -281,7 +281,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: interpolation_properties.js.map ****************************************************************************************************/ -{"version":3,"file":"interpolation_properties.js","sourceRoot":"","sources":["../interpolation_properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,2BAA2B;kDAE1B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,2BAA2B;aACtC"} +{"version":3,"file":"interpolation_properties.js","sourceRoot":"","sources":["../interpolation_properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,2BAA2B;uFAE1B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,2BAA2B;aACtC"} /**************************************************************************************************** * PARTIAL FILE: interpolation_properties.d.ts ****************************************************************************************************/ @@ -304,7 +304,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -315,7 +315,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: interpolation_properties.js.map ****************************************************************************************************/ -{"version":3,"file":"interpolation_properties.js","sourceRoot":"","sources":["../interpolation_properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,2BAA2B;kDAE1B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,2BAA2B;aACtC"} +{"version":3,"file":"interpolation_properties.js","sourceRoot":"","sources":["../interpolation_properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,2BAA2B;uFAE1B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,2BAA2B;aACtC"} /**************************************************************************************************** * PARTIAL FILE: interpolation_properties.d.ts ****************************************************************************************************/ @@ -335,7 +335,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
{{200.3 | percent : 2 }}
', isInline: true }, pipes: { "percent": function () { return PercentPipe; } } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -347,7 +347,7 @@ export class PercentPipe { } PercentPipe.ɵfac = function PercentPipe_Factory(t) { return new (t || PercentPipe)(); }; PercentPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "percent", type: PercentPipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PercentPipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PercentPipe, [{ type: Pipe, args: [{ name: 'percent' }] }], null, null); })(); @@ -356,7 +356,7 @@ export class AppModule { AppModule.ɵmod = i0.ɵɵdefineNgModule({ type: AppModule }); AppModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppModule_Factory(t) { return new (t || AppModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AppModule, { declarations: [TestCmp, PercentPipe] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AppModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AppModule, [{ type: NgModule, args: [{ declarations: [TestCmp, PercentPipe] }] }], null, null); })(); @@ -364,7 +364,7 @@ AppModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppModule_Factory(t) /**************************************************************************************************** * PARTIAL FILE: interpolation_with_pipe.js.map ****************************************************************************************************/ -{"version":3,"file":"interpolation_with_pipe.js","sourceRoot":"","sources":["../interpolation_with_pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;;AAMvE,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,qCAAqC,6DAMpC,WAAW;kDAJX,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,qCAAqC;aAChD;;AAKD,MAAM,OAAO,WAAW;IACtB,SAAS,KAAI,CAAC;;sEADH,WAAW;6DAAX,WAAW;kDAAX,WAAW;cADvB,IAAI;eAAC,EAAC,IAAI,EAAE,SAAS,EAAC;;AAMvB,MAAM,OAAO,SAAS;;6CAAT,SAAS;iGAAT,SAAS;wFAAT,SAAS,mBATT,OAAO,EAIP,WAAW;kDAKX,SAAS;cADrB,QAAQ;eAAC,EAAC,YAAY,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAC"} +{"version":3,"file":"interpolation_with_pipe.js","sourceRoot":"","sources":["../interpolation_with_pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;;AAMvE,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,qCAAqC,6DAMpC,WAAW;uFAJX,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,qCAAqC;aAChD;;AAKD,MAAM,OAAO,WAAW;IACtB,SAAS,KAAI,CAAC;;sEADH,WAAW;6DAAX,WAAW;uFAAX,WAAW;cADvB,IAAI;eAAC,EAAC,IAAI,EAAE,SAAS,EAAC;;AAMvB,MAAM,OAAO,SAAS;;6CAAT,SAAS;iGAAT,SAAS;wFAAT,SAAS,mBATT,OAAO,EAIP,WAAW;uFAKX,SAAS;cADrB,QAAQ;eAAC,EAAC,YAAY,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAC"} /**************************************************************************************************** * PARTIAL FILE: interpolation_with_pipe.d.ts ****************************************************************************************************/ @@ -393,7 +393,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
{{200.3 | percent : 2 }}
', isInline: true }, pipes: { "percent": function () { return PercentPipe; } } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -405,7 +405,7 @@ export class PercentPipe { } PercentPipe.ɵfac = function PercentPipe_Factory(t) { return new (t || PercentPipe)(); }; PercentPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "percent", type: PercentPipe, pure: true }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PercentPipe, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PercentPipe, [{ type: Pipe, args: [{ name: 'percent' }] }], null, null); })(); @@ -414,7 +414,7 @@ export class AppModule { AppModule.ɵmod = i0.ɵɵdefineNgModule({ type: AppModule }); AppModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppModule_Factory(t) { return new (t || AppModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AppModule, { declarations: [TestCmp, PercentPipe] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AppModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AppModule, [{ type: NgModule, args: [{ declarations: [TestCmp, PercentPipe] }] }], null, null); })(); @@ -422,7 +422,7 @@ AppModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppModule_Factory(t) /**************************************************************************************************** * PARTIAL FILE: interpolation_with_pipe.js.map ****************************************************************************************************/ -{"version":3,"file":"interpolation_with_pipe.js","sourceRoot":"","sources":["../interpolation_with_pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;;AAMvE,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,qCAAqC,6DAMpC,WAAW;kDAJX,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,qCAAqC;aAChD;;AAKD,MAAM,OAAO,WAAW;IACtB,SAAS,KAAI,CAAC;;sEADH,WAAW;6DAAX,WAAW;kDAAX,WAAW;cADvB,IAAI;eAAC,EAAC,IAAI,EAAE,SAAS,EAAC;;AAMvB,MAAM,OAAO,SAAS;;6CAAT,SAAS;iGAAT,SAAS;wFAAT,SAAS,mBATT,OAAO,EAIP,WAAW;kDAKX,SAAS;cADrB,QAAQ;eAAC,EAAC,YAAY,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAC"} +{"version":3,"file":"interpolation_with_pipe.js","sourceRoot":"","sources":["../interpolation_with_pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;;AAMvE,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,qCAAqC,6DAMpC,WAAW;uFAJX,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,qCAAqC;aAChD;;AAKD,MAAM,OAAO,WAAW;IACtB,SAAS,KAAI,CAAC;;sEADH,WAAW;6DAAX,WAAW;uFAAX,WAAW;cADvB,IAAI;eAAC,EAAC,IAAI,EAAE,SAAS,EAAC;;AAMvB,MAAM,OAAO,SAAS;;6CAAT,SAAS;iGAAT,SAAS;wFAAT,SAAS,mBATT,OAAO,EAIP,WAAW;uFAKX,SAAS;cADrB,QAAQ;eAAC,EAAC,YAAY,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAC"} /**************************************************************************************************** * PARTIAL FILE: interpolation_with_pipe.d.ts ****************************************************************************************************/ @@ -454,7 +454,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -465,7 +465,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: input_binding_simple.js.map ****************************************************************************************************/ -{"version":3,"file":"input_binding_simple.js","sourceRoot":"","sources":["../input_binding_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,4BAA4B;kDAE3B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,4BAA4B;aACvC"} +{"version":3,"file":"input_binding_simple.js","sourceRoot":"","sources":["../input_binding_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,4BAA4B;uFAE3B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,4BAA4B;aACvC"} /**************************************************************************************************** * PARTIAL FILE: input_binding_simple.d.ts ****************************************************************************************************/ @@ -488,7 +488,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -499,7 +499,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: input_binding_simple.js.map ****************************************************************************************************/ -{"version":3,"file":"input_binding_simple.js","sourceRoot":"","sources":["../input_binding_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,4BAA4B;kDAE3B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,4BAA4B;aACvC"} +{"version":3,"file":"input_binding_simple.js","sourceRoot":"","sources":["../input_binding_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,4BAA4B;uFAE3B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,4BAA4B;aACvC"} /**************************************************************************************************** * PARTIAL FILE: input_binding_simple.d.ts ****************************************************************************************************/ @@ -523,7 +523,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -534,7 +534,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: input_binding_complex.js.map ****************************************************************************************************/ -{"version":3,"file":"input_binding_complex.js","sourceRoot":"","sources":["../input_binding_complex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,aAAQ,GAAW,EAAE,CAAC;QACtB,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAHY,OAAO;6EAAP,OAAO,0DAFR,uCAAuC;kDAEtC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,uCAAuC;aAClD"} +{"version":3,"file":"input_binding_complex.js","sourceRoot":"","sources":["../input_binding_complex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,aAAQ,GAAW,EAAE,CAAC;QACtB,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAHY,OAAO;6EAAP,OAAO,0DAFR,uCAAuC;uFAEtC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,uCAAuC;aAClD"} /**************************************************************************************************** * PARTIAL FILE: input_binding_complex.d.ts ****************************************************************************************************/ @@ -559,7 +559,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -570,7 +570,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: input_binding_complex.js.map ****************************************************************************************************/ -{"version":3,"file":"input_binding_complex.js","sourceRoot":"","sources":["../input_binding_complex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,aAAQ,GAAW,EAAE,CAAC;QACtB,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAHY,OAAO;6EAAP,OAAO,0DAFR,uCAAuC;kDAEtC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,uCAAuC;aAClD"} +{"version":3,"file":"input_binding_complex.js","sourceRoot":"","sources":["../input_binding_complex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,aAAQ,GAAW,EAAE,CAAC;QACtB,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAHY,OAAO;6EAAP,OAAO,0DAFR,uCAAuC;uFAEtC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,uCAAuC;aAClD"} /**************************************************************************************************** * PARTIAL FILE: input_binding_complex.d.ts ****************************************************************************************************/ @@ -594,7 +594,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -605,7 +605,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: input_binding_longhand.js.map ****************************************************************************************************/ -{"version":3,"file":"input_binding_longhand.js","sourceRoot":"","sources":["../input_binding_longhand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,+BAA+B;kDAE9B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,+BAA+B;aAC1C"} +{"version":3,"file":"input_binding_longhand.js","sourceRoot":"","sources":["../input_binding_longhand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,+BAA+B;uFAE9B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,+BAA+B;aAC1C"} /**************************************************************************************************** * PARTIAL FILE: input_binding_longhand.d.ts ****************************************************************************************************/ @@ -628,7 +628,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -639,7 +639,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: input_binding_longhand.js.map ****************************************************************************************************/ -{"version":3,"file":"input_binding_longhand.js","sourceRoot":"","sources":["../input_binding_longhand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,+BAA+B;kDAE9B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,+BAA+B;aAC1C"} +{"version":3,"file":"input_binding_longhand.js","sourceRoot":"","sources":["../input_binding_longhand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,+BAA+B;uFAE9B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,+BAA+B;aAC1C"} /**************************************************************************************************** * PARTIAL FILE: input_binding_longhand.d.ts ****************************************************************************************************/ @@ -660,7 +660,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -671,7 +671,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: output_binding_simple.js.map ****************************************************************************************************/ -{"version":3,"file":"output_binding_simple.js","sourceRoot":"","sources":["../output_binding_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAClB,WAAW,KAAI,CAAC;;8DADL,OAAO;6EAAP,OAAO,0DAFR,gDAAgD;kDAE/C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gDAAgD;aAC3D"} +{"version":3,"file":"output_binding_simple.js","sourceRoot":"","sources":["../output_binding_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAClB,WAAW,KAAI,CAAC;;8DADL,OAAO;6EAAP,OAAO,0DAFR,gDAAgD;uFAE/C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gDAAgD;aAC3D"} /**************************************************************************************************** * PARTIAL FILE: output_binding_simple.d.ts ****************************************************************************************************/ @@ -692,7 +692,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -703,7 +703,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: output_binding_simple.js.map ****************************************************************************************************/ -{"version":3,"file":"output_binding_simple.js","sourceRoot":"","sources":["../output_binding_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAClB,WAAW,KAAI,CAAC;;8DADL,OAAO;6EAAP,OAAO,0DAFR,gDAAgD;kDAE/C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gDAAgD;aAC3D"} +{"version":3,"file":"output_binding_simple.js","sourceRoot":"","sources":["../output_binding_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAClB,WAAW,KAAI,CAAC;;8DADL,OAAO;6EAAP,OAAO,0DAFR,gDAAgD;uFAE/C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gDAAgD;aAC3D"} /**************************************************************************************************** * PARTIAL FILE: output_binding_simple.d.ts ****************************************************************************************************/ @@ -726,7 +726,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: ``, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -737,7 +737,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: output_binding_complex.js.map ****************************************************************************************************/ -{"version":3,"file":"output_binding_complex.js","sourceRoot":"","sources":["../output_binding_complex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,UAAK,GAAa,EAAE,CAAC;KACtB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,uEAAuE;kDAEtE,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,uEAAuE;aAClF"} +{"version":3,"file":"output_binding_complex.js","sourceRoot":"","sources":["../output_binding_complex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,UAAK,GAAa,EAAE,CAAC;KACtB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,uEAAuE;uFAEtE,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,uEAAuE;aAClF"} /**************************************************************************************************** * PARTIAL FILE: output_binding_complex.d.ts ****************************************************************************************************/ @@ -760,7 +760,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: ``, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -771,7 +771,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: output_binding_complex.js.map ****************************************************************************************************/ -{"version":3,"file":"output_binding_complex.js","sourceRoot":"","sources":["../output_binding_complex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,UAAK,GAAa,EAAE,CAAC;KACtB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,uEAAuE;kDAEtE,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,uEAAuE;aAClF"} +{"version":3,"file":"output_binding_complex.js","sourceRoot":"","sources":["../output_binding_complex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,UAAK,GAAa,EAAE,CAAC;KACtB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,uEAAuE;uFAEtE,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,uEAAuE;aAClF"} /**************************************************************************************************** * PARTIAL FILE: output_binding_complex.d.ts ****************************************************************************************************/ @@ -792,7 +792,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -803,7 +803,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: output_binding_longhand.js.map ****************************************************************************************************/ -{"version":3,"file":"output_binding_longhand.js","sourceRoot":"","sources":["../output_binding_longhand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAClB,WAAW,KAAI,CAAC;;8DADL,OAAO;6EAAP,OAAO,0DAFR,iDAAiD;kDAEhD,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,iDAAiD;aAC5D"} +{"version":3,"file":"output_binding_longhand.js","sourceRoot":"","sources":["../output_binding_longhand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAClB,WAAW,KAAI,CAAC;;8DADL,OAAO;6EAAP,OAAO,0DAFR,iDAAiD;uFAEhD,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,iDAAiD;aAC5D"} /**************************************************************************************************** * PARTIAL FILE: output_binding_longhand.d.ts ****************************************************************************************************/ @@ -824,7 +824,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -835,7 +835,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: output_binding_longhand.js.map ****************************************************************************************************/ -{"version":3,"file":"output_binding_longhand.js","sourceRoot":"","sources":["../output_binding_longhand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAClB,WAAW,KAAI,CAAC;;8DADL,OAAO;6EAAP,OAAO,0DAFR,iDAAiD;kDAEhD,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,iDAAiD;aAC5D"} +{"version":3,"file":"output_binding_longhand.js","sourceRoot":"","sources":["../output_binding_longhand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAClB,WAAW,KAAI,CAAC;;8DADL,OAAO;6EAAP,OAAO,0DAFR,iDAAiD;uFAEhD,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,iDAAiD;aAC5D"} /**************************************************************************************************** * PARTIAL FILE: output_binding_longhand.d.ts ****************************************************************************************************/ @@ -858,7 +858,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: 'Name: ', isInline: true }, directives: [{ type: function () { return NgModelDirective; }, selector: "[ngModel]", inputs: ["ngModel"], outputs: ["ngModelChanges"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -873,7 +873,7 @@ export class NgModelDirective { } NgModelDirective.ɵfac = function NgModelDirective_Factory(t) { return new (t || NgModelDirective)(); }; NgModelDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: NgModelDirective, selector: "[ngModel]", inputs: { ngModel: "ngModel" }, outputs: { ngModelChanges: "ngModelChanges" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(NgModelDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgModelDirective, [{ type: Directive, args: [{ selector: '[ngModel]' }] }], null, { ngModel: [{ @@ -886,7 +886,7 @@ export class AppModule { AppModule.ɵmod = i0.ɵɵdefineNgModule({ type: AppModule }); AppModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppModule_Factory(t) { return new (t || AppModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AppModule, { declarations: [TestCmp, NgModelDirective] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AppModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AppModule, [{ type: NgModule, args: [{ declarations: [TestCmp, NgModelDirective] }] }], null, null); })(); @@ -894,7 +894,7 @@ AppModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppModule_Factory(t) /**************************************************************************************************** * PARTIAL FILE: two_way_binding_simple.js.map ****************************************************************************************************/ -{"version":3,"file":"two_way_binding_simple.js","sourceRoot":"","sources":["../two_way_binding_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;;AAM1F,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,kCAAkC,8DAOjC,gBAAgB;kDALhB,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,kCAAkC;aAC7C;;AAMD,MAAM,OAAO,gBAAgB;IAD7B;QAEW,YAAO,GAAW,EAAE,CAAC;QACpB,mBAAc,GAAyB,IAAI,YAAY,EAAE,CAAC;KACrE;;gFAHY,gBAAgB;sFAAhB,gBAAgB;kDAAhB,gBAAgB;cAD5B,SAAS;eAAC,EAAC,QAAQ,EAAE,WAAW,EAAC;gBAEvB,OAAO;kBAAf,KAAK;YACI,cAAc;kBAAvB,MAAM;;AAIT,MAAM,OAAO,SAAS;;6CAAT,SAAS;iGAAT,SAAS;wFAAT,SAAS,mBAXT,OAAO,EAKP,gBAAgB;kDAMhB,SAAS;cADrB,QAAQ;eAAC,EAAC,YAAY,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC,EAAC"} +{"version":3,"file":"two_way_binding_simple.js","sourceRoot":"","sources":["../two_way_binding_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;;AAM1F,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,kCAAkC,8DAOjC,gBAAgB;uFALhB,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,kCAAkC;aAC7C;;AAMD,MAAM,OAAO,gBAAgB;IAD7B;QAEW,YAAO,GAAW,EAAE,CAAC;QACpB,mBAAc,GAAyB,IAAI,YAAY,EAAE,CAAC;KACrE;;gFAHY,gBAAgB;sFAAhB,gBAAgB;uFAAhB,gBAAgB;cAD5B,SAAS;eAAC,EAAC,QAAQ,EAAE,WAAW,EAAC;gBAEvB,OAAO;kBAAf,KAAK;YACI,cAAc;kBAAvB,MAAM;;AAIT,MAAM,OAAO,SAAS;;6CAAT,SAAS;iGAAT,SAAS;wFAAT,SAAS,mBAXT,OAAO,EAKP,gBAAgB;uFAMhB,SAAS;cADrB,QAAQ;eAAC,EAAC,YAAY,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC,EAAC"} /**************************************************************************************************** * PARTIAL FILE: two_way_binding_simple.d.ts ****************************************************************************************************/ @@ -928,7 +928,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: 'Name: ', isInline: true }, directives: [{ type: function () { return NgModelDirective; }, selector: "[ngModel]", inputs: ["ngModel"], outputs: ["ngModelChanges"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -943,7 +943,7 @@ export class NgModelDirective { } NgModelDirective.ɵfac = function NgModelDirective_Factory(t) { return new (t || NgModelDirective)(); }; NgModelDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: NgModelDirective, selector: "[ngModel]", inputs: { ngModel: "ngModel" }, outputs: { ngModelChanges: "ngModelChanges" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(NgModelDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgModelDirective, [{ type: Directive, args: [{ selector: '[ngModel]' }] }], null, { ngModel: [{ @@ -956,7 +956,7 @@ export class AppModule { AppModule.ɵmod = i0.ɵɵdefineNgModule({ type: AppModule }); AppModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppModule_Factory(t) { return new (t || AppModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AppModule, { declarations: [TestCmp, NgModelDirective] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AppModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AppModule, [{ type: NgModule, args: [{ declarations: [TestCmp, NgModelDirective] }] }], null, null); })(); @@ -964,7 +964,7 @@ AppModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppModule_Factory(t) /**************************************************************************************************** * PARTIAL FILE: two_way_binding_simple.js.map ****************************************************************************************************/ -{"version":3,"file":"two_way_binding_simple.js","sourceRoot":"","sources":["../two_way_binding_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;;AAM1F,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,kCAAkC,8DAOjC,gBAAgB;kDALhB,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,kCAAkC;aAC7C;;AAMD,MAAM,OAAO,gBAAgB;IAD7B;QAEW,YAAO,GAAW,EAAE,CAAC;QACpB,mBAAc,GAAyB,IAAI,YAAY,EAAE,CAAC;KACrE;;gFAHY,gBAAgB;sFAAhB,gBAAgB;kDAAhB,gBAAgB;cAD5B,SAAS;eAAC,EAAC,QAAQ,EAAE,WAAW,EAAC;gBAEvB,OAAO;kBAAf,KAAK;YACI,cAAc;kBAAvB,MAAM;;AAIT,MAAM,OAAO,SAAS;;6CAAT,SAAS;iGAAT,SAAS;wFAAT,SAAS,mBAXT,OAAO,EAKP,gBAAgB;kDAMhB,SAAS;cADrB,QAAQ;eAAC,EAAC,YAAY,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC,EAAC"} +{"version":3,"file":"two_way_binding_simple.js","sourceRoot":"","sources":["../two_way_binding_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;;AAM1F,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,kCAAkC,8DAOjC,gBAAgB;uFALhB,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,kCAAkC;aAC7C;;AAMD,MAAM,OAAO,gBAAgB;IAD7B;QAEW,YAAO,GAAW,EAAE,CAAC;QACpB,mBAAc,GAAyB,IAAI,YAAY,EAAE,CAAC;KACrE;;gFAHY,gBAAgB;sFAAhB,gBAAgB;uFAAhB,gBAAgB;cAD5B,SAAS;eAAC,EAAC,QAAQ,EAAE,WAAW,EAAC;gBAEvB,OAAO;kBAAf,KAAK;YACI,cAAc;kBAAvB,MAAM;;AAIT,MAAM,OAAO,SAAS;;6CAAT,SAAS;iGAAT,SAAS;wFAAT,SAAS,mBAXT,OAAO,EAKP,gBAAgB;uFAMhB,SAAS;cADrB,QAAQ;eAAC,EAAC,YAAY,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC,EAAC"} /**************************************************************************************************** * PARTIAL FILE: two_way_binding_simple.d.ts ****************************************************************************************************/ @@ -998,7 +998,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: 'Name: ', isInline: true }, directives: [{ type: function () { return NgModelDirective; }, selector: "[ngModel]", inputs: ["ngModel"], outputs: ["ngModelChanges"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1013,7 +1013,7 @@ export class NgModelDirective { } NgModelDirective.ɵfac = function NgModelDirective_Factory(t) { return new (t || NgModelDirective)(); }; NgModelDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: NgModelDirective, selector: "[ngModel]", inputs: { ngModel: "ngModel" }, outputs: { ngModelChanges: "ngModelChanges" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(NgModelDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgModelDirective, [{ type: Directive, args: [{ selector: '[ngModel]' }] }], null, { ngModel: [{ @@ -1026,7 +1026,7 @@ export class AppModule { AppModule.ɵmod = i0.ɵɵdefineNgModule({ type: AppModule }); AppModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppModule_Factory(t) { return new (t || AppModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AppModule, { declarations: [TestCmp, NgModelDirective] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AppModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AppModule, [{ type: NgModule, args: [{ declarations: [TestCmp, NgModelDirective] }] }], null, null); })(); @@ -1034,7 +1034,7 @@ AppModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppModule_Factory(t) /**************************************************************************************************** * PARTIAL FILE: two_way_binding_longhand.js.map ****************************************************************************************************/ -{"version":3,"file":"two_way_binding_longhand.js","sourceRoot":"","sources":["../two_way_binding_longhand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;;AAM1F,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,qCAAqC,8DAOpC,gBAAgB;kDALhB,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,qCAAqC;aAChD;;AAMD,MAAM,OAAO,gBAAgB;IAD7B;QAEW,YAAO,GAAW,EAAE,CAAC;QACpB,mBAAc,GAAyB,IAAI,YAAY,EAAE,CAAC;KACrE;;gFAHY,gBAAgB;sFAAhB,gBAAgB;kDAAhB,gBAAgB;cAD5B,SAAS;eAAC,EAAC,QAAQ,EAAE,WAAW,EAAC;gBAEvB,OAAO;kBAAf,KAAK;YACI,cAAc;kBAAvB,MAAM;;AAIT,MAAM,OAAO,SAAS;;6CAAT,SAAS;iGAAT,SAAS;wFAAT,SAAS,mBAXT,OAAO,EAKP,gBAAgB;kDAMhB,SAAS;cADrB,QAAQ;eAAC,EAAC,YAAY,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC,EAAC"} +{"version":3,"file":"two_way_binding_longhand.js","sourceRoot":"","sources":["../two_way_binding_longhand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;;AAM1F,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,qCAAqC,8DAOpC,gBAAgB;uFALhB,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,qCAAqC;aAChD;;AAMD,MAAM,OAAO,gBAAgB;IAD7B;QAEW,YAAO,GAAW,EAAE,CAAC;QACpB,mBAAc,GAAyB,IAAI,YAAY,EAAE,CAAC;KACrE;;gFAHY,gBAAgB;sFAAhB,gBAAgB;uFAAhB,gBAAgB;cAD5B,SAAS;eAAC,EAAC,QAAQ,EAAE,WAAW,EAAC;gBAEvB,OAAO;kBAAf,KAAK;YACI,cAAc;kBAAvB,MAAM;;AAIT,MAAM,OAAO,SAAS;;6CAAT,SAAS;iGAAT,SAAS;wFAAT,SAAS,mBAXT,OAAO,EAKP,gBAAgB;uFAMhB,SAAS;cADrB,QAAQ;eAAC,EAAC,YAAY,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC,EAAC"} /**************************************************************************************************** * PARTIAL FILE: two_way_binding_longhand.d.ts ****************************************************************************************************/ @@ -1068,7 +1068,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: 'Name: ', isInline: true }, directives: [{ type: function () { return NgModelDirective; }, selector: "[ngModel]", inputs: ["ngModel"], outputs: ["ngModelChanges"] }] }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1083,7 +1083,7 @@ export class NgModelDirective { } NgModelDirective.ɵfac = function NgModelDirective_Factory(t) { return new (t || NgModelDirective)(); }; NgModelDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", type: NgModelDirective, selector: "[ngModel]", inputs: { ngModel: "ngModel" }, outputs: { ngModelChanges: "ngModelChanges" }, ngImport: i0 }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(NgModelDirective, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgModelDirective, [{ type: Directive, args: [{ selector: '[ngModel]' }] }], null, { ngModel: [{ @@ -1096,7 +1096,7 @@ export class AppModule { AppModule.ɵmod = i0.ɵɵdefineNgModule({ type: AppModule }); AppModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppModule_Factory(t) { return new (t || AppModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AppModule, { declarations: [TestCmp, NgModelDirective] }); })(); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AppModule, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AppModule, [{ type: NgModule, args: [{ declarations: [TestCmp, NgModelDirective] }] }], null, null); })(); @@ -1104,7 +1104,7 @@ AppModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppModule_Factory(t) /**************************************************************************************************** * PARTIAL FILE: two_way_binding_longhand.js.map ****************************************************************************************************/ -{"version":3,"file":"two_way_binding_longhand.js","sourceRoot":"","sources":["../two_way_binding_longhand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;;AAM1F,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,qCAAqC,8DAOpC,gBAAgB;kDALhB,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,qCAAqC;aAChD;;AAMD,MAAM,OAAO,gBAAgB;IAD7B;QAEW,YAAO,GAAW,EAAE,CAAC;QACpB,mBAAc,GAAyB,IAAI,YAAY,EAAE,CAAC;KACrE;;gFAHY,gBAAgB;sFAAhB,gBAAgB;kDAAhB,gBAAgB;cAD5B,SAAS;eAAC,EAAC,QAAQ,EAAE,WAAW,EAAC;gBAEvB,OAAO;kBAAf,KAAK;YACI,cAAc;kBAAvB,MAAM;;AAIT,MAAM,OAAO,SAAS;;6CAAT,SAAS;iGAAT,SAAS;wFAAT,SAAS,mBAXT,OAAO,EAKP,gBAAgB;kDAMhB,SAAS;cADrB,QAAQ;eAAC,EAAC,YAAY,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC,EAAC"} +{"version":3,"file":"two_way_binding_longhand.js","sourceRoot":"","sources":["../two_way_binding_longhand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;;AAM1F,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,qCAAqC,8DAOpC,gBAAgB;uFALhB,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,qCAAqC;aAChD;;AAMD,MAAM,OAAO,gBAAgB;IAD7B;QAEW,YAAO,GAAW,EAAE,CAAC;QACpB,mBAAc,GAAyB,IAAI,YAAY,EAAE,CAAC;KACrE;;gFAHY,gBAAgB;sFAAhB,gBAAgB;uFAAhB,gBAAgB;cAD5B,SAAS;eAAC,EAAC,QAAQ,EAAE,WAAW,EAAC;gBAEvB,OAAO;kBAAf,KAAK;YACI,cAAc;kBAAvB,MAAM;;AAIT,MAAM,OAAO,SAAS;;6CAAT,SAAS;iGAAT,SAAS;wFAAT,SAAS,mBAXT,OAAO,EAKP,gBAAgB;uFAMhB,SAAS;cADrB,QAAQ;eAAC,EAAC,YAAY,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC,EAAC"} /**************************************************************************************************** * PARTIAL FILE: two_way_binding_longhand.d.ts ****************************************************************************************************/ @@ -1138,7 +1138,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
Message
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1149,7 +1149,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: input_binding_class.js.map ****************************************************************************************************/ -{"version":3,"file":"input_binding_class.js","sourceRoot":"","sources":["../input_binding_class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,cAAS,GAAY,IAAI,CAAC;KAC3B;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,gDAAgD;kDAE/C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gDAAgD;aAC3D"} +{"version":3,"file":"input_binding_class.js","sourceRoot":"","sources":["../input_binding_class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,cAAS,GAAY,IAAI,CAAC;KAC3B;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,gDAAgD;uFAE/C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gDAAgD;aAC3D"} /**************************************************************************************************** * PARTIAL FILE: input_binding_class.d.ts ****************************************************************************************************/ @@ -1172,7 +1172,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
Message
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1183,7 +1183,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: input_binding_class.js.map ****************************************************************************************************/ -{"version":3,"file":"input_binding_class.js","sourceRoot":"","sources":["../input_binding_class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,cAAS,GAAY,IAAI,CAAC;KAC3B;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,gDAAgD;kDAE/C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gDAAgD;aAC3D"} +{"version":3,"file":"input_binding_class.js","sourceRoot":"","sources":["../input_binding_class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,cAAS,GAAY,IAAI,CAAC;KAC3B;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,gDAAgD;uFAE/C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gDAAgD;aAC3D"} /**************************************************************************************************** * PARTIAL FILE: input_binding_class.d.ts ****************************************************************************************************/ @@ -1203,7 +1203,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
{{ name }}
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1214,7 +1214,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: ng_if_simple.js.map ****************************************************************************************************/ -{"version":3,"file":"ng_if_simple.js","sourceRoot":"","sources":["../ng_if_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,6CAA6C;kDAE5C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,6CAA6C;aACxD"} +{"version":3,"file":"ng_if_simple.js","sourceRoot":"","sources":["../ng_if_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,6CAA6C;uFAE5C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,6CAA6C;aACxD"} /**************************************************************************************************** * PARTIAL FILE: ng_if_simple.d.ts ****************************************************************************************************/ @@ -1233,7 +1233,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
{{ name }}
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1244,7 +1244,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: ng_if_simple.js.map ****************************************************************************************************/ -{"version":3,"file":"ng_if_simple.js","sourceRoot":"","sources":["../ng_if_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,6CAA6C;kDAE5C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,6CAA6C;aACxD"} +{"version":3,"file":"ng_if_simple.js","sourceRoot":"","sources":["../ng_if_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,6CAA6C;uFAE5C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,6CAA6C;aACxD"} /**************************************************************************************************** * PARTIAL FILE: ng_if_simple.d.ts ****************************************************************************************************/ @@ -1267,7 +1267,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type:
{{ name }}

`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1282,7 +1282,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: ng_if_templated.js.map ****************************************************************************************************/ -{"version":3,"file":"ng_if_templated.js","sourceRoot":"","sources":["../ng_if_templated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAUxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DANR;;;;mBAIO;kDAEN,OAAO;cARnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE;;;;mBAIO;aAClB"} +{"version":3,"file":"ng_if_templated.js","sourceRoot":"","sources":["../ng_if_templated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAUxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DANR;;;;mBAIO;uFAEN,OAAO;cARnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE;;;;mBAIO;aAClB"} /**************************************************************************************************** * PARTIAL FILE: ng_if_templated.d.ts ****************************************************************************************************/ @@ -1305,7 +1305,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type:
{{ name }}

`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1320,7 +1320,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: ng_if_templated.js.map ****************************************************************************************************/ -{"version":3,"file":"ng_if_templated.js","sourceRoot":"","sources":["../ng_if_templated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAUxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DANR;;;;mBAIO;kDAEN,OAAO;cARnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE;;;;mBAIO;aAClB"} +{"version":3,"file":"ng_if_templated.js","sourceRoot":"","sources":["../ng_if_templated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAUxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DANR;;;;mBAIO;uFAEN,OAAO;cARnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE;;;;mBAIO;aAClB"} /**************************************************************************************************** * PARTIAL FILE: ng_if_templated.d.ts ****************************************************************************************************/ @@ -1339,7 +1339,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
{{ item }}
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1350,7 +1350,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: ng_for_simple.js.map ****************************************************************************************************/ -{"version":3,"file":"ng_for_simple.js","sourceRoot":"","sources":["../ng_for_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,kFAAkF;kDAEjF,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,kFAAkF;aAC7F"} +{"version":3,"file":"ng_for_simple.js","sourceRoot":"","sources":["../ng_for_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,kFAAkF;uFAEjF,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,kFAAkF;aAC7F"} /**************************************************************************************************** * PARTIAL FILE: ng_for_simple.d.ts ****************************************************************************************************/ @@ -1369,7 +1369,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
{{ item }}
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1380,7 +1380,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: ng_for_simple.js.map ****************************************************************************************************/ -{"version":3,"file":"ng_for_simple.js","sourceRoot":"","sources":["../ng_for_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,kFAAkF;kDAEjF,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,kFAAkF;aAC7F"} +{"version":3,"file":"ng_for_simple.js","sourceRoot":"","sources":["../ng_for_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,kFAAkF;uFAEjF,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,kFAAkF;aAC7F"} /**************************************************************************************************** * PARTIAL FILE: ng_for_simple.d.ts ****************************************************************************************************/ @@ -1399,7 +1399,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: `{{ item }}`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1410,7 +1410,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: ng_for_templated.js.map ****************************************************************************************************/ -{"version":3,"file":"ng_for_templated.js","sourceRoot":"","sources":["../ng_for_templated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,wEAAwE;kDAEvE,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,wEAAwE;aACnF"} +{"version":3,"file":"ng_for_templated.js","sourceRoot":"","sources":["../ng_for_templated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,wEAAwE;uFAEvE,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,wEAAwE;aACnF"} /**************************************************************************************************** * PARTIAL FILE: ng_for_templated.d.ts ****************************************************************************************************/ @@ -1429,7 +1429,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: `{{ item }}`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1440,7 +1440,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: ng_for_templated.js.map ****************************************************************************************************/ -{"version":3,"file":"ng_for_templated.js","sourceRoot":"","sources":["../ng_for_templated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,wEAAwE;kDAEvE,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,wEAAwE;aACnF"} +{"version":3,"file":"ng_for_templated.js","sourceRoot":"","sources":["../ng_for_templated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,wEAAwE;uFAEvE,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,wEAAwE;aACnF"} /**************************************************************************************************** * PARTIAL FILE: ng_for_templated.d.ts ****************************************************************************************************/ @@ -1461,7 +1461,7 @@ TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: `

`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1474,7 +1474,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: projection.js.map ****************************************************************************************************/ -{"version":3,"file":"projection.js","sourceRoot":"","sources":["../projection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAQxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAJR;;uCAE2B;kDAE1B,OAAO;cANnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE;;uCAE2B;aACtC"} +{"version":3,"file":"projection.js","sourceRoot":"","sources":["../projection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAQxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAJR;;uCAE2B;uFAE1B,OAAO;cANnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE;;uCAE2B;aACtC"} /**************************************************************************************************** * PARTIAL FILE: projection.d.ts ****************************************************************************************************/ @@ -1495,7 +1495,7 @@ TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: `

`, isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1508,7 +1508,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: projection.js.map ****************************************************************************************************/ -{"version":3,"file":"projection.js","sourceRoot":"","sources":["../projection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAQxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAJR;;uCAE2B;kDAE1B,OAAO;cANnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE;;uCAE2B;aACtC"} +{"version":3,"file":"projection.js","sourceRoot":"","sources":["../projection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAQxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAJR;;uCAE2B;uFAE1B,OAAO;cANnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE;;uCAE2B;aACtC"} /**************************************************************************************************** * PARTIAL FILE: projection.d.ts ****************************************************************************************************/ @@ -1527,7 +1527,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
Hello, World!
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1538,7 +1538,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: i18n_message_simple.js.map ****************************************************************************************************/ -{"version":3,"file":"i18n_message_simple.js","sourceRoot":"","sources":["../i18n_message_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,+BAA+B;kDAE9B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,+BAA+B;aAC1C"} +{"version":3,"file":"i18n_message_simple.js","sourceRoot":"","sources":["../i18n_message_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,+BAA+B;uFAE9B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,+BAA+B;aAC1C"} /**************************************************************************************************** * PARTIAL FILE: i18n_message_simple.d.ts ****************************************************************************************************/ @@ -1557,7 +1557,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
Hello, World!
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1568,7 +1568,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: i18n_message_simple.js.map ****************************************************************************************************/ -{"version":3,"file":"i18n_message_simple.js","sourceRoot":"","sources":["../i18n_message_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,+BAA+B;kDAE9B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,+BAA+B;aAC1C"} +{"version":3,"file":"i18n_message_simple.js","sourceRoot":"","sources":["../i18n_message_simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,+BAA+B;uFAE9B,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,+BAA+B;aAC1C"} /**************************************************************************************************** * PARTIAL FILE: i18n_message_simple.d.ts ****************************************************************************************************/ @@ -1590,7 +1590,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
Hello, {{name}}!
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1601,7 +1601,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: i18n_message_placeholder.js.map ****************************************************************************************************/ -{"version":3,"file":"i18n_message_placeholder.js","sourceRoot":"","sources":["../i18n_message_placeholder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,kCAAkC;kDAEjC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,kCAAkC;aAC7C"} +{"version":3,"file":"i18n_message_placeholder.js","sourceRoot":"","sources":["../i18n_message_placeholder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,kCAAkC;uFAEjC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,kCAAkC;aAC7C"} /**************************************************************************************************** * PARTIAL FILE: i18n_message_placeholder.d.ts ****************************************************************************************************/ @@ -1624,7 +1624,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
Hello, {{name}}!
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1635,7 +1635,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: i18n_message_placeholder.js.map ****************************************************************************************************/ -{"version":3,"file":"i18n_message_placeholder.js","sourceRoot":"","sources":["../i18n_message_placeholder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,kCAAkC;kDAEjC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,kCAAkC;aAC7C"} +{"version":3,"file":"i18n_message_placeholder.js","sourceRoot":"","sources":["../i18n_message_placeholder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;IAJpB;QAKE,SAAI,GAAW,EAAE,CAAC;KACnB;;8DAFY,OAAO;6EAAP,OAAO,0DAFR,kCAAkC;uFAEjC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,kCAAkC;aAC7C"} /**************************************************************************************************** * PARTIAL FILE: i18n_message_placeholder.d.ts ****************************************************************************************************/ @@ -1659,7 +1659,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
pre-body {{bodyValue}} post-body
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1670,7 +1670,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: i18n_message_interpolation_whitespace.js.map ****************************************************************************************************/ -{"version":3,"file":"i18n_message_interpolation_whitespace.js","sourceRoot":"","sources":["../i18n_message_interpolation_whitespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAOxC,MAAM,OAAO,OAAO;IALpB;QAME,eAAU,GAAW,EAAE,CAAC;QACxB,cAAS,GAAW,EAAE,CAAC;KACxB;;8DAHY,OAAO;6EAAP,OAAO,0DAFd,+GAA+G;kDAExG,OAAO;cALnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EACJ,+GAA+G;aACpH"} +{"version":3,"file":"i18n_message_interpolation_whitespace.js","sourceRoot":"","sources":["../i18n_message_interpolation_whitespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAOxC,MAAM,OAAO,OAAO;IALpB;QAME,eAAU,GAAW,EAAE,CAAC;QACxB,cAAS,GAAW,EAAE,CAAC;KACxB;;8DAHY,OAAO;6EAAP,OAAO,0DAFd,+GAA+G;uFAExG,OAAO;cALnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EACJ,+GAA+G;aACpH"} /**************************************************************************************************** * PARTIAL FILE: i18n_message_interpolation_whitespace.d.ts ****************************************************************************************************/ @@ -1695,7 +1695,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
pre-body {{bodyValue}} post-body
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1706,7 +1706,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: i18n_message_interpolation_whitespace.js.map ****************************************************************************************************/ -{"version":3,"file":"i18n_message_interpolation_whitespace.js","sourceRoot":"","sources":["../i18n_message_interpolation_whitespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAOxC,MAAM,OAAO,OAAO;IALpB;QAME,eAAU,GAAW,EAAE,CAAC;QACxB,cAAS,GAAW,EAAE,CAAC;KACxB;;8DAHY,OAAO;6EAAP,OAAO,0DAFd,+GAA+G;kDAExG,OAAO;cALnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EACJ,+GAA+G;aACpH"} +{"version":3,"file":"i18n_message_interpolation_whitespace.js","sourceRoot":"","sources":["../i18n_message_interpolation_whitespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAOxC,MAAM,OAAO,OAAO;IALpB;QAME,eAAU,GAAW,EAAE,CAAC;QACxB,cAAS,GAAW,EAAE,CAAC;KACxB;;8DAHY,OAAO;6EAAP,OAAO,0DAFd,+GAA+G;uFAExG,OAAO;cALnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EACJ,+GAA+G;aACpH"} /**************************************************************************************************** * PARTIAL FILE: i18n_message_interpolation_whitespace.d.ts ****************************************************************************************************/ @@ -1727,7 +1727,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
\n pre-p\n

\n in-p\n

\n post-p\n
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1738,7 +1738,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: i18n_message_element_whitespace.js.map ****************************************************************************************************/ -{"version":3,"file":"i18n_message_element_whitespace.js","sourceRoot":"","sources":["../i18n_message_element_whitespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,gEAAgE;kDAE/D,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gEAAgE;aAC3E"} +{"version":3,"file":"i18n_message_element_whitespace.js","sourceRoot":"","sources":["../i18n_message_element_whitespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,gEAAgE;uFAE/D,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gEAAgE;aAC3E"} /**************************************************************************************************** * PARTIAL FILE: i18n_message_element_whitespace.d.ts ****************************************************************************************************/ @@ -1757,7 +1757,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
\n pre-p\n

\n in-p\n

\n post-p\n
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1768,7 +1768,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: i18n_message_element_whitespace.js.map ****************************************************************************************************/ -{"version":3,"file":"i18n_message_element_whitespace.js","sourceRoot":"","sources":["../i18n_message_element_whitespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,gEAAgE;kDAE/D,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gEAAgE;aAC3E"} +{"version":3,"file":"i18n_message_element_whitespace.js","sourceRoot":"","sources":["../i18n_message_element_whitespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,gEAAgE;uFAE/D,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gEAAgE;aAC3E"} /**************************************************************************************************** * PARTIAL FILE: i18n_message_element_whitespace.d.ts ****************************************************************************************************/ @@ -1787,7 +1787,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
Hello, World!
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1798,7 +1798,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: i18n_message_container_tag.js.map ****************************************************************************************************/ -{"version":3,"file":"i18n_message_container_tag.js","sourceRoot":"","sources":["../i18n_message_container_tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,sCAAsC;kDAErC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,sCAAsC;aACjD"} +{"version":3,"file":"i18n_message_container_tag.js","sourceRoot":"","sources":["../i18n_message_container_tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,sCAAsC;uFAErC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,sCAAsC;aACjD"} /**************************************************************************************************** * PARTIAL FILE: i18n_message_container_tag.d.ts ****************************************************************************************************/ @@ -1817,7 +1817,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
Hello, World!
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1828,7 +1828,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: i18n_message_container_tag.js.map ****************************************************************************************************/ -{"version":3,"file":"i18n_message_container_tag.js","sourceRoot":"","sources":["../i18n_message_container_tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,sCAAsC;kDAErC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,sCAAsC;aACjD"} +{"version":3,"file":"i18n_message_container_tag.js","sourceRoot":"","sources":["../i18n_message_container_tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,sCAAsC;uFAErC,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,sCAAsC;aACjD"} /**************************************************************************************************** * PARTIAL FILE: i18n_message_container_tag.d.ts ****************************************************************************************************/ @@ -1847,7 +1847,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
this is a test
{{ 1 + 2 }}
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1858,7 +1858,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: update_mode.js.map ****************************************************************************************************/ -{"version":3,"file":"update_mode.js","sourceRoot":"","sources":["../update_mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,iDAAiD;kDAEhD,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,iDAAiD;aAC5D"} +{"version":3,"file":"update_mode.js","sourceRoot":"","sources":["../update_mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,iDAAiD;uFAEhD,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,iDAAiD;aAC5D"} /**************************************************************************************************** * PARTIAL FILE: update_mode.d.ts ****************************************************************************************************/ @@ -1877,7 +1877,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
this is a test
{{ 1 + 2 }}
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1888,7 +1888,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: update_mode.js.map ****************************************************************************************************/ -{"version":3,"file":"update_mode.js","sourceRoot":"","sources":["../update_mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,iDAAiD;kDAEhD,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,iDAAiD;aAC5D"} +{"version":3,"file":"update_mode.js","sourceRoot":"","sources":["../update_mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,iDAAiD;uFAEhD,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,iDAAiD;aAC5D"} /**************************************************************************************************** * PARTIAL FILE: update_mode.d.ts ****************************************************************************************************/ @@ -1907,7 +1907,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
this is a test
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1918,7 +1918,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: escape_sequences.js.map ****************************************************************************************************/ -{"version":3,"file":"escape_sequences.js","sourceRoot":"","sources":["../escape_sequences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,gDAAgD;kDAE/C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gDAAgD;aAC3D"} +{"version":3,"file":"escape_sequences.js","sourceRoot":"","sources":["../escape_sequences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,gDAAgD;uFAE/C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gDAAgD;aAC3D"} /**************************************************************************************************** * PARTIAL FILE: escape_sequences.d.ts ****************************************************************************************************/ @@ -1937,7 +1937,7 @@ export class TestCmp { } TestCmp.ɵfac = function TestCmp_Factory(t) { return new (t || TestCmp)(); }; TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: TestCmp, selector: "test-cmp", ngImport: i0, template: { source: '
this is a test
', isInline: true } }); -/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TestCmp, [{ +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TestCmp, [{ type: Component, args: [{ selector: 'test-cmp', @@ -1948,7 +1948,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: /**************************************************************************************************** * PARTIAL FILE: escape_sequences.js.map ****************************************************************************************************/ -{"version":3,"file":"escape_sequences.js","sourceRoot":"","sources":["../escape_sequences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,gDAAgD;kDAE/C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gDAAgD;aAC3D"} +{"version":3,"file":"escape_sequences.js","sourceRoot":"","sources":["../escape_sequences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAMxC,MAAM,OAAO,OAAO;;8DAAP,OAAO;6EAAP,OAAO,0DAFR,gDAAgD;uFAE/C,OAAO;cAJnB,SAAS;eAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,gDAAgD;aAC3D"} /**************************************************************************************************** * PARTIAL FILE: escape_sequences.d.ts ****************************************************************************************************/ diff --git a/packages/compiler-cli/test/compliance_old/r3_compiler_compliance_spec.ts b/packages/compiler-cli/test/compliance_old/r3_compiler_compliance_spec.ts index b83844c31a..06cae1931c 100644 --- a/packages/compiler-cli/test/compliance_old/r3_compiler_compliance_spec.ts +++ b/packages/compiler-cli/test/compliance_old/r3_compiler_compliance_spec.ts @@ -3340,14 +3340,14 @@ describe('compiler compliance', () => { // The setClassMetadata call should look like this. const setClassMetadata = ` - … - (function() { - i0.ɵsetClassMetadata(Comp, [{ - type: Component, - args: [{ - template: '', - providers: [{ provide: token, useExisting: Comp }] - `; + (function() { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Comp, [{ + type: Component, + args: [{ + template: '', + providers: [{provide: token, useExisting: Comp}], + }] + }], null, null); })(); + `; const result = compile(files, angularFiles, {target: ts.ScriptTarget.ES5}); expectEmit(result.source, setClassMetadata, 'Incorrect setClassMetadata call'); diff --git a/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts b/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts index 5bef51d006..377558555e 100644 --- a/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts +++ b/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts @@ -4151,7 +4151,7 @@ runInEachFileSystem(os => { expect(jsContents).toContain('directives: function () { return [CmpB]; }'); }); - it('should wrap setClassMetadata in an iife', () => { + it('should wrap setClassMetadata in an iife with ngDevMode guard', () => { env.write('test.ts', ` import {Injectable} from '@angular/core'; @@ -4163,7 +4163,8 @@ runInEachFileSystem(os => { const jsContents = env.getContents('test.js').replace(/\s+/g, ' '); expect(jsContents) .toContain( - `/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Service, [{ type: Injectable, args: [{ providedIn: 'root' }] }], null, null); })();`); + `(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ` + + `i0.ɵsetClassMetadata(Service, [{ type: Injectable, args: [{ providedIn: 'root' }] }], null, null); })();`); }); it('should not include `schemas` in component and module defs', () => { diff --git a/packages/compiler/src/compiler.ts b/packages/compiler/src/compiler.ts index 7b4add4d78..5df78db770 100644 --- a/packages/compiler/src/compiler.ts +++ b/packages/compiler/src/compiler.ts @@ -101,7 +101,7 @@ export {R3DependencyMetadata, R3ResolvedDependencyType, compileFactoryFunction, export {compileInjector, compileNgModule, R3InjectorMetadata, R3NgModuleMetadata} from './render3/r3_module_compiler'; export {compilePipeFromMetadata, R3PipeMetadata} from './render3/r3_pipe_compiler'; export {makeBindingParser, ParsedTemplate, parseTemplate, ParseTemplateOptions} from './render3/view/template'; -export {R3Reference} from './render3/util'; +export {R3Reference, devOnlyGuardedExpression} from './render3/util'; export {compileComponentFromMetadata, compileDirectiveFromMetadata, parseHostBindings, ParsedHostBindings, verifyHostBindings} from './render3/view/compiler'; export {compileDeclareComponentFromMetadata} from './render3/partial/component'; export {compileDeclareDirectiveFromMetadata} from './render3/partial/directive'; diff --git a/packages/compiler/src/render3/util.ts b/packages/compiler/src/render3/util.ts index 5c1d7bb40a..8f1be8bd92 100644 --- a/packages/compiler/src/render3/util.ts +++ b/packages/compiler/src/render3/util.ts @@ -89,13 +89,21 @@ export function prepareSyntheticListenerFunctionName(name: string, phase: string } export function jitOnlyGuardedExpression(expr: o.Expression): o.Expression { - const ngJitMode = new o.ExternalExpr({name: 'ngJitMode', moduleName: null}); - const jitFlagNotDefined = new o.BinaryOperatorExpr( - o.BinaryOperator.Identical, new o.TypeofExpr(ngJitMode), o.literal('undefined')); - const jitFlagUndefinedOrTrue = new o.BinaryOperatorExpr( - o.BinaryOperator.Or, jitFlagNotDefined, ngJitMode, /* type */ undefined, + return guardedExpression('ngJitMode', expr); +} + +export function devOnlyGuardedExpression(expr: o.Expression): o.Expression { + return guardedExpression('ngDevMode', expr); +} + +export function guardedExpression(guard: string, expr: o.Expression): o.Expression { + const guardExpr = new o.ExternalExpr({name: guard, moduleName: null}); + const guardNotDefined = new o.BinaryOperatorExpr( + o.BinaryOperator.Identical, new o.TypeofExpr(guardExpr), o.literal('undefined')); + const guardUndefinedOrTrue = new o.BinaryOperatorExpr( + o.BinaryOperator.Or, guardNotDefined, guardExpr, /* type */ undefined, /* sourceSpan */ undefined, true); - return new o.BinaryOperatorExpr(o.BinaryOperator.And, jitFlagUndefinedOrTrue, expr); + return new o.BinaryOperatorExpr(o.BinaryOperator.And, guardUndefinedOrTrue, expr); } export function wrapReference(value: any): R3Reference { diff --git a/packages/core/src/render3/metadata.ts b/packages/core/src/render3/metadata.ts index 317e265c0f..e12a40e125 100644 --- a/packages/core/src/render3/metadata.ts +++ b/packages/core/src/render3/metadata.ts @@ -21,8 +21,8 @@ interface TypeWithMetadata extends Type { * * These metadata fields can later be read with Angular's `ReflectionCapabilities` API. * - * Calls to `setClassMetadata` can be marked as pure, resulting in the metadata assignments being - * tree-shaken away during production builds. + * Calls to `setClassMetadata` can be guarded by ngDevMode, resulting in the metadata assignments + * being tree-shaken away during production builds. */ export function setClassMetadata( type: Type, decorators: any[]|null, ctorParameters: (() => any[])|null,