|
| 1 | +/**************************************************************************************************** |
| 2 | + * PARTIAL FILE: nullish_coalescing_interpolation.js |
| 3 | + ****************************************************************************************************/ |
| 4 | +import { Component, NgModule } from '@angular/core'; |
| 5 | +import * as i0 from "@angular/core"; |
| 6 | +export class MyApp { |
| 7 | + constructor() { |
| 8 | + this.firstName = null; |
| 9 | + this.lastName = null; |
| 10 | + this.lastNameFallback = 'Baggins'; |
| 11 | + } |
| 12 | +} |
| 13 | +MyApp.ɵfac = i0.ɵɵngDeclareFactory({ version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component }); |
| 14 | +MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: ` |
| 15 | + <div>Hello, {{ firstName ?? 'Frodo' }}!</div> |
| 16 | + <span>Your last name is {{ lastName ?? lastNameFallback ?? 'unknown' }}</span> |
| 17 | + `, isInline: true }); |
| 18 | +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ |
| 19 | + type: Component, |
| 20 | + args: [{ |
| 21 | + selector: 'my-app', |
| 22 | + template: ` |
| 23 | + <div>Hello, {{ firstName ?? 'Frodo' }}!</div> |
| 24 | + <span>Your last name is {{ lastName ?? lastNameFallback ?? 'unknown' }}</span> |
| 25 | + ` |
| 26 | + }] |
| 27 | + }], null, null); })(); |
| 28 | +export class MyModule { |
| 29 | +} |
| 30 | +MyModule.ɵfac = i0.ɵɵngDeclareFactory({ version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); |
| 31 | +MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyApp] }); |
| 32 | +MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); |
| 33 | +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ |
| 34 | + type: NgModule, |
| 35 | + args: [{ declarations: [MyApp] }] |
| 36 | + }], null, null); })(); |
| 37 | + |
| 38 | +/**************************************************************************************************** |
| 39 | + * PARTIAL FILE: nullish_coalescing_interpolation.d.ts |
| 40 | + ****************************************************************************************************/ |
| 41 | +import * as i0 from "@angular/core"; |
| 42 | +export declare class MyApp { |
| 43 | + firstName: string | null; |
| 44 | + lastName: string | null; |
| 45 | + lastNameFallback: string; |
| 46 | + static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>; |
| 47 | + static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never>; |
| 48 | +} |
| 49 | +export declare class MyModule { |
| 50 | + static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; |
| 51 | + static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyApp], never, never>; |
| 52 | + static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; |
| 53 | +} |
| 54 | + |
| 55 | +/**************************************************************************************************** |
| 56 | + * PARTIAL FILE: nullish_coalescing_property.js |
| 57 | + ****************************************************************************************************/ |
| 58 | +import { Component, NgModule } from '@angular/core'; |
| 59 | +import * as i0 from "@angular/core"; |
| 60 | +export class MyApp { |
| 61 | + constructor() { |
| 62 | + this.firstName = null; |
| 63 | + this.lastName = null; |
| 64 | + this.lastNameFallback = 'Baggins'; |
| 65 | + } |
| 66 | +} |
| 67 | +MyApp.ɵfac = i0.ɵɵngDeclareFactory({ version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component }); |
| 68 | +MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", ngImport: i0, template: ` |
| 69 | + <div [title]="'Hello, ' + (firstName ?? 'Frodo') + '!'"></div> |
| 70 | + <span [title]="'Your last name is ' + lastName ?? lastNameFallback ?? 'unknown'"></span> |
| 71 | + `, isInline: true }); |
| 72 | +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ |
| 73 | + type: Component, |
| 74 | + args: [{ |
| 75 | + selector: 'my-app', |
| 76 | + template: ` |
| 77 | + <div [title]="'Hello, ' + (firstName ?? 'Frodo') + '!'"></div> |
| 78 | + <span [title]="'Your last name is ' + lastName ?? lastNameFallback ?? 'unknown'"></span> |
| 79 | + ` |
| 80 | + }] |
| 81 | + }], null, null); })(); |
| 82 | +export class MyModule { |
| 83 | +} |
| 84 | +MyModule.ɵfac = i0.ɵɵngDeclareFactory({ version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); |
| 85 | +MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyApp] }); |
| 86 | +MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); |
| 87 | +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ |
| 88 | + type: NgModule, |
| 89 | + args: [{ declarations: [MyApp] }] |
| 90 | + }], null, null); })(); |
| 91 | + |
| 92 | +/**************************************************************************************************** |
| 93 | + * PARTIAL FILE: nullish_coalescing_property.d.ts |
| 94 | + ****************************************************************************************************/ |
| 95 | +import * as i0 from "@angular/core"; |
| 96 | +export declare class MyApp { |
| 97 | + firstName: string | null; |
| 98 | + lastName: string | null; |
| 99 | + lastNameFallback: string; |
| 100 | + static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>; |
| 101 | + static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never>; |
| 102 | +} |
| 103 | +export declare class MyModule { |
| 104 | + static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; |
| 105 | + static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyApp], never, never>; |
| 106 | + static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; |
| 107 | +} |
| 108 | + |
| 109 | +/**************************************************************************************************** |
| 110 | + * PARTIAL FILE: nullish_coalescing_host.js |
| 111 | + ****************************************************************************************************/ |
| 112 | +import { Component, NgModule } from '@angular/core'; |
| 113 | +import * as i0 from "@angular/core"; |
| 114 | +export class MyApp { |
| 115 | + constructor() { |
| 116 | + this.firstName = null; |
| 117 | + this.lastName = null; |
| 118 | + this.lastNameFallback = 'Baggins'; |
| 119 | + } |
| 120 | + logLastName(name) { |
| 121 | + console.log(name); |
| 122 | + } |
| 123 | +} |
| 124 | +MyApp.ɵfac = i0.ɵɵngDeclareFactory({ version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component }); |
| 125 | +MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: MyApp, selector: "my-app", host: { listeners: { "click": "logLastName(lastName ?? lastNameFallback ?? 'unknown')" }, properties: { "attr.first-name": "'Hello, ' + (firstName ?? 'Frodo') + '!'" } }, ngImport: i0, template: ``, isInline: true }); |
| 126 | +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyApp, [{ |
| 127 | + type: Component, |
| 128 | + args: [{ |
| 129 | + selector: 'my-app', |
| 130 | + host: { |
| 131 | + '[attr.first-name]': `'Hello, ' + (firstName ?? 'Frodo') + '!'`, |
| 132 | + '(click)': `logLastName(lastName ?? lastNameFallback ?? 'unknown')` |
| 133 | + }, |
| 134 | + template: `` |
| 135 | + }] |
| 136 | + }], null, null); })(); |
| 137 | +export class MyModule { |
| 138 | +} |
| 139 | +MyModule.ɵfac = i0.ɵɵngDeclareFactory({ version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); |
| 140 | +MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyApp] }); |
| 141 | +MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); |
| 142 | +(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MyModule, [{ |
| 143 | + type: NgModule, |
| 144 | + args: [{ declarations: [MyApp] }] |
| 145 | + }], null, null); })(); |
| 146 | + |
| 147 | +/**************************************************************************************************** |
| 148 | + * PARTIAL FILE: nullish_coalescing_host.d.ts |
| 149 | + ****************************************************************************************************/ |
| 150 | +import * as i0 from "@angular/core"; |
| 151 | +export declare class MyApp { |
| 152 | + firstName: string | null; |
| 153 | + lastName: string | null; |
| 154 | + lastNameFallback: string; |
| 155 | + logLastName(name: string): void; |
| 156 | + static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>; |
| 157 | + static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never>; |
| 158 | +} |
| 159 | +export declare class MyModule { |
| 160 | + static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; |
| 161 | + static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyApp], never, never>; |
| 162 | + static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; |
| 163 | +} |
| 164 | + |
0 commit comments