_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_tracking_function.ts_0_574 | import {Component} from '@angular/core';
@Component({
template: `
@for (grandparent of items; track trackByGrandparent(grandparent, $index)) {
@for (parent of grandparent.items; track trackByParent(parent, $index)) {
@for (child of parent.items; track trackByChild(child, $index)) {
}
}
}
`,
standalone: false
})
export class MyApp {
items: any[] = [];
trackByGrandparent = (item: any, index: number) => index;
trackByParent = (item: any, index: number) => index;
trackByChild = (item: any, index: number) => index;
}
| {
"end_byte": 574,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_tracking_function.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/conditional_same_component_names.js_0_446 | function TestComponent_Conditional_0_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵtext(0, " First ");
}
}
function TestComponent_Conditional_1_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵtext(0, " Second ");
}
}
function TestComponent_Conditional_0_Template1(rf, ctx) {
if (rf & 1) {
i0.ɵɵtext(0, " First ");
}
}
function TestComponent_Conditional_1_Template1(rf, ctx) {
if (rf & 1) {
i0.ɵɵtext(0, " Second ");
}
} | {
"end_byte": 446,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/conditional_same_component_names.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js_0_8008 | /****************************************************************************************************
* PARTIAL FILE: basic_switch.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
}
value() {
return 1;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@switch (value()) {
@case (0) {
case 0
}
@case (1) {
case 1
}
@case (2) {
case 2
}
@default {
default
}
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@switch (value()) {
@case (0) {
case 0
}
@case (1) {
case 1
}
@case (2) {
case 2
}
@default {
default
}
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: basic_switch.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
value(): number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: switch_without_default.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.value = () => 1;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@switch (value()) {
@case (0) {
case 0
}
@case (1) {
case 1
}
@case (2) {
case 2
}
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@switch (value()) {
@case (0) {
case 0
}
@case (1) {
case 1
}
@case (2) {
case 2
}
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: switch_without_default.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
value: () => number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: nested_switch.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.value = () => 1;
this.nestedValue = () => 2;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@switch (value()) {
@case (0) {
case 0
}
@case (1) {
@switch (nestedValue()) {
@case (0) {
nested case 0
}
@case (1) {
nested case 1
}
@case (2) {
nested case 2
}
}
}
@case (2) {
case 2
}
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@switch (value()) {
@case (0) {
case 0
}
@case (1) {
@switch (nestedValue()) {
@case (0) {
nested case 0
}
@case (1) {
nested case 1
}
@case (2) {
nested case 2
}
}
}
@case (2) {
case 2
}
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: nested_switch.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
value: () => number;
nestedValue: () => number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: switch_with_pipe.js
****************************************************************************************************/
import { Component, Pipe } from '@angular/core';
import * as i0 from "@angular/core";
export class TestPipe {
transform(value) {
return value;
}
}
TestPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
TestPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestPipe, isStandalone: true, name: "test" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestPipe, decorators: [{
type: Pipe,
args: [{ name: 'test' }]
}] });
export class MyApp {
constructor() {
this.message = 'hello';
this.value = () => 1;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", v | {
"end_byte": 8008,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js_8009_16178 | rsion: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@switch (value() | test) {
@case (0 | test) {
case 0
}
@case (1 | test) {
case 1
}
@default {
default
}
}
</div>
`, isInline: true, dependencies: [{ kind: "pipe", type: TestPipe, name: "test" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@switch (value() | test) {
@case (0 | test) {
case 0
}
@case (1 | test) {
case 1
}
@default {
default
}
}
</div>
`,
imports: [TestPipe]
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: switch_with_pipe.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestPipe {
transform(value: unknown): unknown;
static ɵfac: i0.ɵɵFactoryDeclaration<TestPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<TestPipe, "test", true>;
}
export declare class MyApp {
message: string;
value: () => number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, true, never>;
}
/****************************************************************************************************
* PARTIAL FILE: empty_switch.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@switch (message) {}
{{message}}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@switch (message) {}
{{message}}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: empty_switch.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: basic_if.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.value = () => 1;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@if (value()) {
hello
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@if (value()) {
hello
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: basic_if.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
value: () => number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: basic_if_else.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.value = () => 1;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@if (value()) {
hello
} @else {
goodbye
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@if (value()) {
hello
} @else {
goodbye
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: basic_if_else.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
value: () => number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: basic_if_else_if.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.value = () => 1;
this.otherValue = () => 2;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@if (value() === 1) {
one
} @else if (otherValue() === 2) {
two
} @else if (message) {
three
} @else {
four
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
| {
"end_byte": 16178,
"start_byte": 8009,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js_16179_24089 | type: Component,
args: [{
template: `
<div>
{{message}}
@if (value() === 1) {
one
} @else if (otherValue() === 2) {
two
} @else if (message) {
three
} @else {
four
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: basic_if_else_if.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
value: () => number;
otherValue: () => number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: nested_if.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.val = 1;
this.innerVal = 2;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@if (val === 0) {
zero
} @else if (val === 1) {
one
} @else if (val === 2) {
@if (innerVal === 0) {
inner zero
} @else if (innerVal === 1) {
inner one
} @else if (innerVal === 2) {
inner two
} @else {
inner three
}
} @else {
three
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@if (val === 0) {
zero
} @else if (val === 1) {
one
} @else if (val === 2) {
@if (innerVal === 0) {
inner zero
} @else if (innerVal === 1) {
inner one
} @else if (innerVal === 2) {
inner two
} @else {
inner three
}
} @else {
three
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: nested_if.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
val: number;
innerVal: number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: if_with_pipe.js
****************************************************************************************************/
import { Component, Pipe } from '@angular/core';
import * as i0 from "@angular/core";
export class TestPipe {
transform(value) {
return value;
}
}
TestPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
TestPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestPipe, isStandalone: true, name: "test" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestPipe, decorators: [{
type: Pipe,
args: [{ name: 'test' }]
}] });
export class MyApp {
constructor() {
this.message = 'hello';
this.val = 1;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@if ((val | test) === 1) {
one
} @else if ((val | test) === 2) {
two
} @else {
three
}
</div>
`, isInline: true, dependencies: [{ kind: "pipe", type: TestPipe, name: "test" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@if ((val | test) === 1) {
one
} @else if ((val | test) === 2) {
two
} @else {
three
}
</div>
`,
imports: [TestPipe],
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: if_with_pipe.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestPipe {
transform(value: unknown): unknown;
static ɵfac: i0.ɵɵFactoryDeclaration<TestPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<TestPipe, "test", true>;
}
export declare class MyApp {
message: string;
val: number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, true, never>;
}
/****************************************************************************************************
* PARTIAL FILE: if_with_alias.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.value = () => 1;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@if (value(); as alias) {
{{value()}} as {{alias}}
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@if (value(); as alias) {
{{value()}} as {{alias}}
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: if_with_alias.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
value: () => number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDe | {
"end_byte": 24089,
"start_byte": 16179,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js_24090_32453 | laration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: if_nested_alias.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.value = () => 1;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
@if (value(); as root) {
Root: {{value()}}/{{root}}
@if (value(); as inner) {
Inner: {{value()}}/{{root}}/{{inner}}
@if (value(); as innermost) {
Innermost: {{value()}}/{{root}}/{{inner}}/{{innermost}}
}
}
}
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
@if (value(); as root) {
Root: {{value()}}/{{root}}
@if (value(); as inner) {
Inner: {{value()}}/{{root}}/{{inner}}
@if (value(); as innermost) {
Innermost: {{value()}}/{{root}}/{{inner}}/{{innermost}}
}
}
}
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: if_nested_alias.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
value: () => number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: if_nested_alias_listeners.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.value = () => 1;
}
log(..._) { }
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
@if (value(); as root) {
<button (click)="log(value(), root)"></button>
@if (value(); as inner) {
<button (click)="log(value(), root, inner)"></button>
@if (value(); as innermost) {
<button (click)="log(value(), root, inner, innermost)"></button>
}
}
}
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
@if (value(); as root) {
<button (click)="log(value(), root)"></button>
@if (value(); as inner) {
<button (click)="log(value(), root, inner)"></button>
@if (value(); as innermost) {
<button (click)="log(value(), root, inner, innermost)"></button>
}
}
}
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: if_nested_alias_listeners.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
value: () => number;
log(..._: any[]): void;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: basic_for.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [{ name: 'one' }, { name: 'two' }, { name: 'three' }];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@for (item of items; track item) {
{{item.name}}
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@for (item of items; track item) {
{{item.name}}
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: basic_for.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: {
name: string;
}[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_with_empty.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [{ name: 'one' }, { name: 'two' }, { name: 'three' }];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@for (item of items; track item) {
{{item.name}}
} @empty {
No items!
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@for (item of items; track item) {
{{item.name}}
} @empty {
No items!
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_with_empty.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: {
name: string;
}[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/*********************************************************************************************** | {
"end_byte": 32453,
"start_byte": 24090,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js_32458_40760 |
* PARTIAL FILE: for_track_by_index.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [{ name: 'one' }, { name: 'two' }, { name: 'three' }];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@for (item of items; track $index) {
{{item.name}}
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@for (item of items; track $index) {
{{item.name}}
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_track_by_index.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: {
name: string;
}[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_track_by_field.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [{ name: 'one' }, { name: 'two' }, { name: 'three' }];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@for (item of items; track item.name[0].toUpperCase()) {
{{item.name}}
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@for (item of items; track item.name[0].toUpperCase()) {
{{item.name}}
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_track_by_field.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: {
name: string;
}[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: nested_for.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [
{ name: 'one', subItems: ['sub one', 'sub two', 'sub three'] },
{ name: 'two', subItems: ['sub one', 'sub two', 'sub three'] },
{ name: 'three', subItems: ['sub one', 'sub two', 'sub three'] },
];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@for (item of items; track item) {
{{item.name}}
@for (subitem of item.subItems; track $index) {
{{subitem}} from {{item.name}}
}
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@for (item of items; track item) {
{{item.name}}
@for (subitem of item.subItems; track $index) {
{{subitem}} from {{item.name}}
}
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: nested_for.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: {
name: string;
subItems: string[];
}[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_template_variables.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@for (item of items; track item) {
Index: {{$index}}
First: {{$first}}
Last: {{$last}}
Even: {{$even}}
Odd: {{$odd}}
Count: {{$count}}
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@for (item of items; track item) {
Index: {{$index}}
First: {{$first}}
Last: {{$last}}
Even: {{$even}}
Odd: {{$odd}}
Count: {{$count}}
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_template_variables.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: never[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_aliased_template_variables.js
****** | {
"end_byte": 40760,
"start_byte": 32458,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js_40765_48753 | *****************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@for (item of items; track item; let idx = $index, f = $first; let l = $last, ev = $even, o = $odd; let co = $count) {
Index: {{idx}}
First: {{f}}
Last: {{l}}
Even: {{ev}}
Odd: {{o}}
Count: {{co}}
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@for (item of items; track item; let idx = $index, f = $first; let l = $last, ev = $even, o = $odd; let co = $count) {
Index: {{idx}}
First: {{f}}
Last: {{l}}
Even: {{ev}}
Odd: {{o}}
Count: {{co}}
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_aliased_template_variables.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: never[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_both_aliased_and_original_variables.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@for (item of items; track item; let idx = $index, f = $first; let l = $last, ev = $even, o = $odd; let co = $count) {
Original index: {{$index}}
Original first: {{$first}}
Original last: {{$last}}
Original even: {{$even}}
Original odd: {{$odd}}
Original count: {{$count}}
<hr>
Aliased index: {{idx}}
Aliased first: {{f}}
Aliased last: {{l}}
Aliased even: {{ev}}
Aliased odd: {{o}}
Aliased count: {{co}}
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@for (item of items; track item; let idx = $index, f = $first; let l = $last, ev = $even, o = $odd; let co = $count) {
Original index: {{$index}}
Original first: {{$first}}
Original last: {{$last}}
Original even: {{$even}}
Original odd: {{$odd}}
Original count: {{$count}}
<hr>
Aliased index: {{idx}}
Aliased first: {{f}}
Aliased last: {{l}}
Aliased even: {{ev}}
Aliased odd: {{o}}
Aliased count: {{co}}
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_both_aliased_and_original_variables.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: never[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: nested_for_template_variables.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [
{ name: 'one', subItems: ['sub one', 'sub two', 'sub three'] },
{ name: 'two', subItems: ['sub one', 'sub two', 'sub three'] },
{ name: 'three', subItems: ['sub one', 'sub two', 'sub three'] },
];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@for (item of items; track item; let outerCount = $count) {
{{item.name}}
@for (subitem of item.subItems; track subitem) {
Outer: {{outerCount}}
Inner: {{$count}}
}
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@for (item of items; track item; let outerCount = $count) {
{{item.name}}
@for (subitem of item.subItems; track subitem) {
Outer: {{outerCount}}
Inner: {{$count}}
}
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: nested_for_template_variables.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: {
name: string;
subItems: string[];
}[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_template_variables_listener.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [];
}
log(..._) { }
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", t | {
"end_byte": 48753,
"start_byte": 40765,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js_48754_56875 | pe: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@for (item of items; track item; let ev = $even) {
<div (click)="log($index, ev, $first, $count)"></div>
}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@for (item of items; track item; let ev = $even) {
<div (click)="log($index, ev, $first, $count)"></div>
}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_template_variables_listener.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: never[];
log(..._: any[]): void;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_variables_expression.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.items = [];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `@for (item of items; track item) {
{{$odd + ''}}
}`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `@for (item of items; track item) {
{{$odd + ''}}
}`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_variables_expression.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
items: never[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_data_slots.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
// We verify the data slots by defining templates before/after
// and checking that the indexes are sequential.
export class MyApp {
constructor() {
this.items = ['one', 'two', 'three'];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<ng-template/>
@for (item of items; track item) {
{{item}}
} @empty {
Empty
}
<ng-template/>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<ng-template/>
@for (item of items; track item) {
{{item}}
} @empty {
Empty
}
<ng-template/>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_data_slots.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
items: string[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_template_variables_scope.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
{{$index}} {{$count}} {{$first}} {{$last}}
@for (item of items; track item) {
{{$index}} {{$count}} {{$first}} {{$last}}
}
{{$index}} {{$count}} {{$first}} {{$last}}
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
{{$index}} {{$count}} {{$first}} {{$last}}
@for (item of items; track item) {
{{$index}} {{$count}} {{$first}} {{$last}}
}
{{$index}} {{$count}} {{$first}} {{$last}}
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_template_variables_scope.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: never[];
$index: any;
$count: any;
$first: any;
$last: any;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_template_track_method_root.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [{ name: 'one' }, { name: 'two' }, { name: 'three' }];
}
trackFn(_index, item) {
return item;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@for (item of items; track trackFn($index, item)) {}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
| {
"end_byte": 56875,
"start_byte": 48754,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js_56876_65078 | args: [{
template: `
<div>
{{message}}
@for (item of items; track trackFn($index, item)) {}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_template_track_method_root.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: {
name: string;
}[];
trackFn(_index: number, item: any): any;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_template_track_method_nested.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [{ name: 'one' }, { name: 'two' }, { name: 'three' }];
}
trackFn(_index, item) {
return item;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
<ng-template>
@for (item of items; track trackFn($index, item)) {}
</ng-template>
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
<ng-template>
@for (item of items; track trackFn($index, item)) {}
</ng-template>
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_template_track_method_nested.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: {
name: string;
}[];
trackFn(_index: number, item: any): any;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_template_track_method_only_index.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [{ name: 'one' }, { name: 'two' }, { name: 'three' }];
}
trackFn(index) {
return index;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@for (item of items; track trackFn($index)) {}
</div>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@for (item of items; track trackFn($index)) {}
</div>
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_template_track_method_only_index.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: {
name: string;
}[];
trackFn(index: number): number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_pure_track_reuse.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.items = [{ name: 'one' }, { name: 'two' }, { name: 'three' }];
this.otherItems = [{ name: 'four' }, { name: 'five' }, { name: 'six' }];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
@for (item of items; track item.name[0].toUpperCase()) {
{{item.name}}
}
@for (otherItem of otherItems; track otherItem.name[0].toUpperCase()) {
{{otherItem.name}}
}
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
@for (item of items; track item.name[0].toUpperCase()) {
{{item.name}}
}
@for (otherItem of otherItems; track otherItem.name[0].toUpperCase()) {
{{otherItem.name}}
}
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_pure_track_reuse.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
items: {
name: string;
}[];
otherItems: {
name: string;
}[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_impure_track_reuse.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [{ name: 'one' }, { name: 'two' }, { name: 'three' }];
this.otherItems = [{ name: 'four' }, { name: 'five' }, { name: 'six' }];
}
trackFn(item, message) {
return message + item.name;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
@for (item of items; track trackFn(item, message)) {
{{item.name}}
}
@for (otherItem of otherItems; track trackFn(otherItem, message)) {
{{oth | {
"end_byte": 65078,
"start_byte": 56876,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js_65079_72732 | rItem.name}}
}
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
@for (item of items; track trackFn(item, message)) {
{{item.name}}
}
@for (otherItem of otherItems; track trackFn(otherItem, message)) {
{{otherItem.name}}
}
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_impure_track_reuse.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
message: string;
items: {
name: string;
}[];
otherItems: {
name: string;
}[];
trackFn(item: any, message: string): string;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_track_literals.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.items = [];
}
trackFn(obj, arr) {
return null;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
@for (item of items; track trackFn({foo: item, bar: item}, [item, item])) {
{{item.name}}
}
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
@for (item of items; track trackFn({foo: item, bar: item}, [item, item])) {
{{item.name}}
}
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_track_literals.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
items: {
name: string;
}[];
trackFn(obj: any, arr: any[]): null;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_with_pipe.js
****************************************************************************************************/
import { Component, Pipe } from '@angular/core';
import * as i0 from "@angular/core";
export class TestPipe {
transform(value) {
return value;
}
}
TestPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
TestPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestPipe, isStandalone: true, name: "test" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestPipe, decorators: [{
type: Pipe,
args: [{ name: 'test' }]
}] });
export class MyApp {
constructor() {
this.message = 'hello';
this.items = [1, 2, 3];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
<div>
{{message}}
@for (item of items | test; track item) {
{{item}}
}
</div>
`, isInline: true, dependencies: [{ kind: "pipe", type: TestPipe, name: "test" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
<div>
{{message}}
@for (item of items | test; track item) {
{{item}}
}
</div>
`,
imports: [TestPipe],
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_with_pipe.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestPipe {
transform(value: unknown): unknown;
static ɵfac: i0.ɵɵFactoryDeclaration<TestPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<TestPipe, "test", true>;
}
export declare class MyApp {
message: string;
items: number[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, true, never>;
}
/****************************************************************************************************
* PARTIAL FILE: if_element_root_node.js
****************************************************************************************************/
import { Component, Directive, Input } from '@angular/core';
import * as i0 from "@angular/core";
export class Binding {
constructor() {
this.binding = 0;
}
}
Binding.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Binding, deps: [], target: i0.ɵɵFactoryTarget.Directive });
Binding.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: Binding, isStandalone: true, selector: "[binding]", inputs: { binding: "binding" }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Binding, decorators: [{
type: Directive,
args: [{ selector: '[binding]' }]
}], propDecorators: { binding: [{
type: Input
}] } });
export class MyApp {
constructor() {
this.expr = 0;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
@if (expr === 0) {
<div foo="1" bar="2" [binding]="3">{{expr}}</div>
} @else if (expr === 1) {
<div foo="4" bar="5" [binding]="6">{{expr}}</div>
} @else {
<div foo="7" bar="8" [binding]="9">{{expr}}</div>
}
`, isInline: true, dependencies: [{ kind: "directive", type: Binding, selector: "[binding]", inputs: ["binding"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", | {
"end_byte": 72732,
"start_byte": 65079,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js_72733_80190 | version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
@if (expr === 0) {
<div foo="1" bar="2" [binding]="3">{{expr}}</div>
} @else if (expr === 1) {
<div foo="4" bar="5" [binding]="6">{{expr}}</div>
} @else {
<div foo="7" bar="8" [binding]="9">{{expr}}</div>
}
`,
imports: [Binding],
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: if_element_root_node.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class Binding {
binding: number;
static ɵfac: i0.ɵɵFactoryDeclaration<Binding, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<Binding, "[binding]", never, { "binding": { "alias": "binding"; "required": false; }; }, {}, never, never, true, never>;
}
export declare class MyApp {
expr: number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, true, never>;
}
/****************************************************************************************************
* PARTIAL FILE: if_template_root_node.js
****************************************************************************************************/
import { Component, Directive, Input } from '@angular/core';
import * as i0 from "@angular/core";
export class Binding {
constructor() {
this.binding = 0;
}
}
Binding.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Binding, deps: [], target: i0.ɵɵFactoryTarget.Directive });
Binding.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: Binding, isStandalone: true, selector: "[binding]", inputs: { binding: "binding" }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Binding, decorators: [{
type: Directive,
args: [{ selector: '[binding]' }]
}], propDecorators: { binding: [{
type: Input
}] } });
export class MyApp {
constructor() {
this.expr = 0;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
@if (expr === 0) {
<ng-template foo="1" bar="2" [binding]="3">{{expr}}</ng-template>
} @else if (expr === 1) {
<ng-template foo="4" bar="5" [binding]="6">{{expr}}</ng-template>
} @else {
<ng-template foo="7" bar="8" [binding]="9">{{expr}}</ng-template>
}
`, isInline: true, dependencies: [{ kind: "directive", type: Binding, selector: "[binding]", inputs: ["binding"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
@if (expr === 0) {
<ng-template foo="1" bar="2" [binding]="3">{{expr}}</ng-template>
} @else if (expr === 1) {
<ng-template foo="4" bar="5" [binding]="6">{{expr}}</ng-template>
} @else {
<ng-template foo="7" bar="8" [binding]="9">{{expr}}</ng-template>
}
`,
imports: [Binding],
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: if_template_root_node.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class Binding {
binding: number;
static ɵfac: i0.ɵɵFactoryDeclaration<Binding, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<Binding, "[binding]", never, { "binding": { "alias": "binding"; "required": false; }; }, {}, never, never, true, never>;
}
export declare class MyApp {
expr: number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, true, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_element_root_node.js
****************************************************************************************************/
import { Component, Directive, Input } from '@angular/core';
import * as i0 from "@angular/core";
export class Binding {
constructor() {
this.binding = 0;
}
}
Binding.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Binding, deps: [], target: i0.ɵɵFactoryTarget.Directive });
Binding.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: Binding, isStandalone: true, selector: "[binding]", inputs: { binding: "binding" }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Binding, decorators: [{
type: Directive,
args: [{ selector: '[binding]' }]
}], propDecorators: { binding: [{
type: Input
}] } });
export class MyApp {
constructor() {
this.items = [1, 2, 3];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
@for (item of items; track item) {
<div foo="1" bar="2" [binding]="3">{{item}}</div>
} @empty {
<span empty-foo="1" empty-bar="2" [binding]="3">Empty!</span>
}
`, isInline: true, dependencies: [{ kind: "directive", type: Binding, selector: "[binding]", inputs: ["binding"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
@for (item of items; track item) {
<div foo="1" bar="2" [binding]="3">{{item}}</div>
} @empty {
<span empty-foo="1" empty-bar="2" [binding]="3">Empty!</span>
}
`,
imports: [Binding],
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_element_root_node.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class Binding {
binding: number;
static ɵfac: i0.ɵɵFactoryDeclaration<Binding, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<Binding, "[binding]", never, { "binding": { "alias": "binding"; "required": false; }; }, {}, never, never, true, never>;
}
export declare class MyApp {
items: number[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp | {
"end_byte": 80190,
"start_byte": 72733,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js_80192_86970 | never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, true, never>;
}
/****************************************************************************************************
* PARTIAL FILE: for_template_root_node.js
****************************************************************************************************/
import { Component, Directive, Input } from '@angular/core';
import * as i0 from "@angular/core";
export class Binding {
constructor() {
this.binding = 0;
}
}
Binding.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Binding, deps: [], target: i0.ɵɵFactoryTarget.Directive });
Binding.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: Binding, isStandalone: true, selector: "[binding]", inputs: { binding: "binding" }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Binding, decorators: [{
type: Directive,
args: [{ selector: '[binding]' }]
}], propDecorators: { binding: [{
type: Input
}] } });
export class MyApp {
constructor() {
this.items = [1, 2, 3];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
@for (item of items; track item) {
<ng-template foo="1" bar="2" [binding]="3">{{item}}</ng-template>
} @empty {
<ng-template empty-foo="1" empty-bar="2" [binding]="3">Empty!</ng-template>
}
`, isInline: true, dependencies: [{ kind: "directive", type: Binding, selector: "[binding]", inputs: ["binding"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
@for (item of items; track item) {
<ng-template foo="1" bar="2" [binding]="3">{{item}}</ng-template>
} @empty {
<ng-template empty-foo="1" empty-bar="2" [binding]="3">Empty!</ng-template>
}
`,
imports: [Binding],
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: for_template_root_node.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class Binding {
binding: number;
static ɵfac: i0.ɵɵFactoryDeclaration<Binding, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<Binding, "[binding]", never, { "binding": { "alias": "binding"; "required": false; }; }, {}, never, never, true, never>;
}
export declare class MyApp {
items: number[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, true, never>;
}
/****************************************************************************************************
* PARTIAL FILE: switch_element_root_node.js
****************************************************************************************************/
import { Component, Directive, Input } from '@angular/core';
import * as i0 from "@angular/core";
export class Binding {
constructor() {
this.binding = 0;
}
}
Binding.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Binding, deps: [], target: i0.ɵɵFactoryTarget.Directive });
Binding.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: Binding, isStandalone: true, selector: "[binding]", inputs: { binding: "binding" }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Binding, decorators: [{
type: Directive,
args: [{ selector: '[binding]' }]
}], propDecorators: { binding: [{
type: Input
}] } });
export class MyApp {
constructor() {
this.expr = 0;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
@switch (expr) {
@case (0) {
<div foo="1" bar="2" [binding]="3">{{expr}}</div>
}
@case (1) {
<div foo="4" bar="5" [binding]="6">{{expr}}</div>
}
@default {
<div foo="7" bar="8" [binding]="9">{{expr}}</div>
}
}
`, isInline: true, dependencies: [{ kind: "directive", type: Binding, selector: "[binding]", inputs: ["binding"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
@switch (expr) {
@case (0) {
<div foo="1" bar="2" [binding]="3">{{expr}}</div>
}
@case (1) {
<div foo="4" bar="5" [binding]="6">{{expr}}</div>
}
@default {
<div foo="7" bar="8" [binding]="9">{{expr}}</div>
}
}
`,
imports: [Binding],
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: switch_element_root_node.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class Binding {
binding: number;
static ɵfac: i0.ɵɵFactoryDeclaration<Binding, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<Binding, "[binding]", never, { "binding": { "alias": "binding"; "required": false; }; }, {}, never, never, true, never>;
}
export declare class MyApp {
expr: number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, true, never>;
}
/****************************************************************************************************
* PARTIAL FILE: switch_template_root_node.js
****************************************************************************************************/
import { Component, Directive, In | {
"end_byte": 86970,
"start_byte": 80192,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js_86975_94110 | from '@angular/core';
import * as i0 from "@angular/core";
export class Binding {
constructor() {
this.binding = 0;
}
}
Binding.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Binding, deps: [], target: i0.ɵɵFactoryTarget.Directive });
Binding.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: Binding, isStandalone: true, selector: "[binding]", inputs: { binding: "binding" }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Binding, decorators: [{
type: Directive,
args: [{ selector: '[binding]' }]
}], propDecorators: { binding: [{
type: Input
}] } });
export class MyApp {
constructor() {
this.expr = 0;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
@switch (expr) {
@case (0) {
<ng-template foo="1" bar="2" [binding]="3">{{expr}}</ng-template>
}
@case (1) {
<ng-template foo="4" bar="5" [binding]="6">{{expr}}</ng-template>
}
@default {
<ng-template foo="7" bar="8" [binding]="9">{{expr}}</ng-template>
}
}
`, isInline: true, dependencies: [{ kind: "directive", type: Binding, selector: "[binding]", inputs: ["binding"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
@switch (expr) {
@case (0) {
<ng-template foo="1" bar="2" [binding]="3">{{expr}}</ng-template>
}
@case (1) {
<ng-template foo="4" bar="5" [binding]="6">{{expr}}</ng-template>
}
@default {
<ng-template foo="7" bar="8" [binding]="9">{{expr}}</ng-template>
}
}
`,
imports: [Binding],
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: switch_template_root_node.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class Binding {
binding: number;
static ɵfac: i0.ɵɵFactoryDeclaration<Binding, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<Binding, "[binding]", never, { "binding": { "alias": "binding"; "required": false; }; }, {}, never, never, true, never>;
}
export declare class MyApp {
expr: number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, true, never>;
}
/****************************************************************************************************
* PARTIAL FILE: nested_for_computed_template_variables.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.items = [];
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
@for (outer of items; track outer; let outerOdd = $odd, outerEven = $even, outerFirst = $first, outerLast = $last) {
Outer vars: {{outerOdd}} {{outerEven}} {{outerFirst}} {{outerLast}}
@for (inner of items; track inner; let innerOdd = $odd, innerEven = $even, innerFirst = $first, innerLast = $last) {
Inner vars: {{innerOdd}} {{innerEven}} {{innerFirst}} {{innerLast}}
<br>
Outer vars: {{outerOdd}} {{outerEven}} {{outerFirst}} {{outerLast}}
@for (innermost of items; track innermost; let innermostOdd = $odd, innermostEven = $even, innermostFirst = $first, innermostLast = $last) {
Innermost vars: {{innermostOdd}} {{innermostEven}} {{innermostFirst}} {{innermostLast}}
<br>
Inner vars: {{innerOdd}} {{innerEven}} {{innerFirst}} {{innerLast}}
<br>
Outer vars: {{outerOdd}} {{outerEven}} {{outerFirst}} {{outerLast}}
}
}
}
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
@for (outer of items; track outer; let outerOdd = $odd, outerEven = $even, outerFirst = $first, outerLast = $last) {
Outer vars: {{outerOdd}} {{outerEven}} {{outerFirst}} {{outerLast}}
@for (inner of items; track inner; let innerOdd = $odd, innerEven = $even, innerFirst = $first, innerLast = $last) {
Inner vars: {{innerOdd}} {{innerEven}} {{innerFirst}} {{innerLast}}
<br>
Outer vars: {{outerOdd}} {{outerEven}} {{outerFirst}} {{outerLast}}
@for (innermost of items; track innermost; let innermostOdd = $odd, innermostEven = $even, innermostFirst = $first, innermostLast = $last) {
Innermost vars: {{innermostOdd}} {{innermostEven}} {{innermostFirst}} {{innermostLast}}
<br>
Inner vars: {{innerOdd}} {{innerEven}} {{innerFirst}} {{innerLast}}
<br>
Outer vars: {{outerOdd}} {{outerEven}} {{outerFirst}} {{outerLast}}
}
}
}
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: nested_for_computed_template_variables.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
items: never[];
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: nested_for_listener_computed_template_variables.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.items = [];
}
outerCb(...args) { }
innerCb(...args) { }
innermostCb(...args) { }
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, | {
"end_byte": 94110,
"start_byte": 86975,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js_94115_101802 | : MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
@for (outer of items; track outer; let outerOdd = $odd, outerEven = $even, outerFirst = $first, outerLast = $last) {
<button (click)="outerCb(outerOdd, outerEven, outerFirst, outerLast)"></button>
@for (inner of items; track inner; let innerOdd = $odd, innerEven = $even, innerFirst = $first, innerLast = $last) {
<button (click)="innerCb(innerOdd, innerEven, innerFirst, innerLast)"></button>
<button (click)="outerCb(outerOdd, outerEven, outerFirst, outerLast)"></button>
@for (innermost of items; track innermost; let innermostOdd = $odd, innermostEven = $even, innermostFirst = $first, innermostLast = $last) {
<button (click)="innermostCb(innermostOdd, innermostEven, innermostFirst, innermostLast)"></button>
<button (click)="innerCb(innerOdd, innerEven, innerFirst, innerLast)"></button>
<button (click)="outerCb(outerOdd, outerEven, outerFirst, outerLast)"></button>
}
}
}
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
@for (outer of items; track outer; let outerOdd = $odd, outerEven = $even, outerFirst = $first, outerLast = $last) {
<button (click)="outerCb(outerOdd, outerEven, outerFirst, outerLast)"></button>
@for (inner of items; track inner; let innerOdd = $odd, innerEven = $even, innerFirst = $first, innerLast = $last) {
<button (click)="innerCb(innerOdd, innerEven, innerFirst, innerLast)"></button>
<button (click)="outerCb(outerOdd, outerEven, outerFirst, outerLast)"></button>
@for (innermost of items; track innermost; let innermostOdd = $odd, innermostEven = $even, innermostFirst = $first, innermostLast = $last) {
<button (click)="innermostCb(innermostOdd, innermostEven, innermostFirst, innermostLast)"></button>
<button (click)="innerCb(innerOdd, innerEven, innerFirst, innerLast)"></button>
<button (click)="outerCb(outerOdd, outerEven, outerFirst, outerLast)"></button>
}
}
}
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: nested_for_listener_computed_template_variables.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
items: never[];
outerCb(...args: unknown[]): void;
innerCb(...args: unknown[]): void;
innermostCb(...args: unknown[]): void;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: nested_for_tracking_function.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class MyApp {
constructor() {
this.items = [];
this.trackByGrandparent = (item, index) => index;
this.trackByParent = (item, index) => index;
this.trackByChild = (item, index) => index;
}
}
MyApp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
@for (grandparent of items; track trackByGrandparent(grandparent, $index)) {
@for (parent of grandparent.items; track trackByParent(parent, $index)) {
@for (child of parent.items; track trackByChild(child, $index)) {
}
}
}
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{
type: Component,
args: [{
template: `
@for (grandparent of items; track trackByGrandparent(grandparent, $index)) {
@for (parent of grandparent.items; track trackByParent(parent, $index)) {
@for (child of parent.items; track trackByChild(child, $index)) {
}
}
}
`,
standalone: false
}]
}] });
/****************************************************************************************************
* PARTIAL FILE: nested_for_tracking_function.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class MyApp {
items: any[];
trackByGrandparent: (item: any, index: number) => number;
trackByParent: (item: any, index: number) => number;
trackByChild: (item: any, index: number) => number;
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: conditional_same_component_names.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
function it(_desc, fn) { }
it('case 1', () => {
class TestComponent {
}
TestComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: TestComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
@if (true) {
First
} @else {
Second
}
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestComponent, decorators: [{
type: Component,
args: [{
template: `
@if (true) {
First
} @else {
Second
}
`,
standalone: false
}]
}] });
});
it('case 2', () => {
class TestComponent {
}
TestComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "0.0.0-PLACEHOLDER", type: TestComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: `
@if (true) {
First
} @else {
Second
}
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestComponent, decorators: [{
type: Component,
args: [{
template: `
@if (true) {
First
} @else {
Sec | {
"end_byte": 101802,
"start_byte": 94115,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js_101803_103016 | nd
}
`,
standalone: false
}]
}] });
});
/****************************************************************************************************
* PARTIAL FILE: conditional_same_component_names.d.ts
****************************************************************************************************/
export {};
| {
"end_byte": 103016,
"start_byte": 101803,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/empty_switch.ts_0_229 | import {Component} from '@angular/core';
@Component({
template: `
<div>
{{message}}
@switch (message) {}
{{message}}
</div>
`,
standalone: false
})
export class MyApp {
message = 'hello';
}
| {
"end_byte": 229,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/empty_switch.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_if_else_if.ts_0_399 | import {Component} from '@angular/core';
@Component({
template: `
<div>
{{message}}
@if (value() === 1) {
one
} @else if (otherValue() === 2) {
two
} @else if (message) {
three
} @else {
four
}
</div>
`,
standalone: false
})
export class MyApp {
message = 'hello';
value = () => 1;
otherValue = () => 2;
}
| {
"end_byte": 399,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_if_else_if.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_if.ts_0_578 | import {Component} from '@angular/core';
@Component({
template: `
<div>
{{message}}
@if (val === 0) {
zero
} @else if (val === 1) {
one
} @else if (val === 2) {
@if (innerVal === 0) {
inner zero
} @else if (innerVal === 1) {
inner one
} @else if (innerVal === 2) {
inner two
} @else {
inner three
}
} @else {
three
}
</div>
`,
standalone: false
})
export class MyApp {
message = 'hello';
val = 1;
innerVal = 2;
}
| {
"end_byte": 578,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_if.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_element_root_node.ts_0_516 | import {Component, Directive, Input} from '@angular/core';
@Directive({selector: '[binding]'})
export class Binding {
@Input() binding = 0;
}
@Component({
template: `
@switch (expr) {
@case (0) {
<div foo="1" bar="2" [binding]="3">{{expr}}</div>
}
@case (1) {
<div foo="4" bar="5" [binding]="6">{{expr}}</div>
}
@default {
<div foo="7" bar="8" [binding]="9">{{expr}}</div>
}
}
`,
imports: [Binding],
})
export class MyApp {
expr = 0;
}
| {
"end_byte": 516,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_element_root_node.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_track_method_nested.ts_0_406 | import {Component} from '@angular/core';
@Component({
template: `
<div>
{{message}}
<ng-template>
@for (item of items; track trackFn($index, item)) {}
</ng-template>
</div>
`,
standalone: false
})
export class MyApp {
message = 'hello';
items = [{name: 'one'}, {name: 'two'}, {name: 'three'}];
trackFn(_index: number, item: any) {
return item;
}
}
| {
"end_byte": 406,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_track_method_nested.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_aliased_template_variables.ts_0_457 | import {Component} from '@angular/core';
@Component({
template: `
<div>
{{message}}
@for (item of items; track item; let idx = $index, f = $first; let l = $last, ev = $even, o = $odd; let co = $count) {
Index: {{idx}}
First: {{f}}
Last: {{l}}
Even: {{ev}}
Odd: {{o}}
Count: {{co}}
}
</div>
`,
standalone: false
})
export class MyApp {
message = 'hello';
items = [];
}
| {
"end_byte": 457,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_aliased_template_variables.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_track_method_only_index_template.js_0_87 | $r3$.ɵɵrepeaterCreate(2, MyApp_For_3_Template, 0, 0, null, null, ctx.trackFn, true);
| {
"end_byte": 87,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_track_method_only_index_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_with_pipe.ts_0_384 | import {Component, Pipe} from '@angular/core';
@Pipe({name: 'test'})
export class TestPipe {
transform(value: unknown) {
return value;
}
}
@Component({
template: `
<div>
{{message}}
@for (item of items | test; track item) {
{{item}}
}
</div>
`,
imports: [TestPipe],
})
export class MyApp {
message = 'hello';
items = [1, 2, 3];
}
| {
"end_byte": 384,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_with_pipe.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_with_alias_template.js_0_679 | function MyApp_Conditional_2_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0);
}
if (rf & 2) {
const $ctx0$ = $r3$.ɵɵnextContext();
$r3$.ɵɵtextInterpolate2(" ", $ctx0$.value(), " as ", ctx, " ");
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵtext(1);
$r3$.ɵɵtemplate(2, MyApp_Conditional_2_Template, 1, 2);
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
let $MyApp_contFlowTmp$;
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1(" ", ctx.message, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵconditional(($MyApp_contFlowTmp$ = ctx.value()) ? 2 : -1, $MyApp_contFlowTmp$);
}
}
| {
"end_byte": 679,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_with_alias_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_without_default_template.js_0_855 | function MyApp_Case_2_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0, " case 0 ");
}
}
function MyApp_Case_3_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0, " case 1 ");
}
}
function MyApp_Case_4_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0, " case 2 ");
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵtext(1);
$r3$.ɵɵtemplate(2, MyApp_Case_2_Template, 1, 0)(3, MyApp_Case_3_Template, 1, 0)(4, MyApp_Case_4_Template, 1, 0);
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
let $MyApp_contFlowTmp$;
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1(" ", ctx.message, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵconditional(($MyApp_contFlowTmp$ = ctx.value()) === 0 ? 2 : $MyApp_contFlowTmp$ === 1 ? 3 : $MyApp_contFlowTmp$ === 2 ? 4 : -1);
}
}
| {
"end_byte": 855,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_without_default_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_element_root_node_template.js_0_279 | consts: [["foo", "1", "bar", "2", 3, "binding"], ["foo", "4", "bar", "5", 3, "binding"], ["foo", "7", "bar", "8", 3, "binding"]],
…
$r3$.ɵɵtemplate(0, MyApp_Case_0_Template, 2, 2, "div", 0)(1, MyApp_Case_1_Template, 2, 2, "div", 1)(2, MyApp_Case_2_Template, 2, 2, "div", 2);
| {
"end_byte": 279,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_element_root_node_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_for.ts_0_314 | import {Component} from '@angular/core';
@Component({
template: `
<div>
{{message}}
@for (item of items; track item) {
{{item.name}}
}
</div>
`,
standalone: false
})
export class MyApp {
message = 'hello';
items = [{name: 'one'}, {name: 'two'}, {name: 'three'}];
}
| {
"end_byte": 314,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_for.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_element_root_node_template.js_0_253 | consts: [["foo", "1", "bar", "2", 3, "binding"], ["empty-foo", "1", "empty-bar", "2", 3, "binding"]]
…
$r3$.ɵɵrepeaterCreate(0, MyApp_For_1_Template, 2, 2, "div", 0, i0.ɵɵrepeaterTrackByIdentity, false, MyApp_ForEmpty_2_Template, 2, 1, "span", 1); | {
"end_byte": 253,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_element_root_node_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_track_method_root.ts_0_363 | import {Component} from '@angular/core';
@Component({
template: `
<div>
{{message}}
@for (item of items; track trackFn($index, item)) {}
</div>
`,
standalone: false
})
export class MyApp {
message = 'hello';
items = [{name: 'one'}, {name: 'two'}, {name: 'three'}];
trackFn(_index: number, item: any) {
return item;
}
}
| {
"end_byte": 363,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_track_method_root.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_variables_expression_template.js_0_210 | function MyApp_For_1_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0);
}
if (rf & 2) {
const $index_r2$ = ctx.$index;
$r3$.ɵɵtextInterpolate1(" ", ($index_r2$ % 2 !== 0) + "", " ");
}
}
| {
"end_byte": 210,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_variables_expression_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_data_slots.ts_0_396 | import {Component} from '@angular/core';
// We verify the data slots by defining templates before/after
// and checking that the indexes are sequential.
@Component({
template: `
<ng-template/>
@for (item of items; track item) {
{{item}}
} @empty {
Empty
}
<ng-template/>
`,
standalone: false
})
export class MyApp {
items = ['one', 'two', 'three'];
}
| {
"end_byte": 396,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_data_slots.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_element_root_node.ts_0_479 | import {Component, Directive, Input} from '@angular/core';
@Directive({selector: '[binding]'})
export class Binding {
@Input() binding = 0;
}
@Component({
template: `
@if (expr === 0) {
<div foo="1" bar="2" [binding]="3">{{expr}}</div>
} @else if (expr === 1) {
<div foo="4" bar="5" [binding]="6">{{expr}}</div>
} @else {
<div foo="7" bar="8" [binding]="9">{{expr}}</div>
}
`,
imports: [Binding],
})
export class MyApp {
expr = 0;
}
| {
"end_byte": 479,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_element_root_node.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_if_else_template.js_0_628 | function MyApp_Conditional_2_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0, " hello ");
}
}
function MyApp_Conditional_3_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0, " goodbye ");
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵtext(1);
$r3$.ɵɵtemplate(2, MyApp_Conditional_2_Template, 1, 0)(3, MyApp_Conditional_3_Template, 1, 0);
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1(" ", ctx.message, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵconditional(ctx.value() ? 2 : 3);
}
}
| {
"end_byte": 628,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_if_else_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_root_node_template.js_0_251 | consts: [["foo", "1", "bar", "2", 3, "binding"], ["empty-foo", "1", "empty-bar", "2", 3, "binding"]]
…
$r3$.ɵɵrepeaterCreate(0, MyApp_For_1_Template, 1, 1, null, 0, i0.ɵɵrepeaterTrackByIdentity, false, MyApp_ForEmpty_2_Template, 1, 1, null, 1);
| {
"end_byte": 251,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_root_node_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_with_pipe.ts_0_436 | import {Component, Pipe} from '@angular/core';
@Pipe({name: 'test'})
export class TestPipe {
transform(value: unknown) {
return value;
}
}
@Component({
template: `
<div>
{{message}}
@if ((val | test) === 1) {
one
} @else if ((val | test) === 2) {
two
} @else {
three
}
</div>
`,
imports: [TestPipe],
})
export class MyApp {
message = 'hello';
val = 1;
}
| {
"end_byte": 436,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_with_pipe.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_variables_expression.ts_0_191 | import {Component} from '@angular/core';
@Component({
template: `@for (item of items; track item) {
{{$odd + ''}}
}`,
standalone: false
})
export class MyApp {
items = [];
}
| {
"end_byte": 191,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_variables_expression.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_track_method_root_template.js_0_87 | $r3$.ɵɵrepeaterCreate(2, MyApp_For_3_Template, 0, 0, null, null, ctx.trackFn, true);
| {
"end_byte": 87,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_track_method_root_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_if_template.js_0_483 | function MyApp_Conditional_2_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0, " hello ");
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵtext(1);
$r3$.ɵɵtemplate(2, MyApp_Conditional_2_Template, 1, 0);
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1(" ", ctx.message, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵconditional(ctx.value() ? 2 : -1);
}
}
| {
"end_byte": 483,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_if_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_track_by_index_template.js_0_601 | function MyApp_For_3_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0);
}
if (rf & 2) {
const item_r1 = ctx.$implicit;
$r3$.ɵɵtextInterpolate1(" ", item_r1.name, " ");
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵtext(1);
$r3$.ɵɵrepeaterCreate(2, MyApp_For_3_Template, 1, 1, null, null, $r3$.ɵɵrepeaterTrackByIndex);
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1(" ", ctx.message, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵrepeater(ctx.items);
}
}
| {
"end_byte": 601,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_track_by_index_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_nested_alias_template.js_0_2009 | function MyApp_Conditional_0_Conditional_1_Conditional_1_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0);
}
if (rf & 2) {
const $inner_r3$ = $r3$.ɵɵnextContext();
const $root_r1$ = $r3$.ɵɵnextContext();
const $ctx_r4$ = $r3$.ɵɵnextContext();
$r3$.ɵɵtextInterpolate4(" Innermost: ", $ctx_r4$.value(), "/", $root_r1$, "/", $inner_r3$, "/", ctx, " ");
}
}
function MyApp_Conditional_0_Conditional_1_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0);
$r3$.ɵɵtemplate(1, MyApp_Conditional_0_Conditional_1_Conditional_1_Template, 1, 4);
}
if (rf & 2) {
// NOTE: TODO: These ellipses were added because of a different variable order between
// NOTE: TemplateDefinitionBuilder and Template Pipeline. They should be removed once
// NOTE: TemplateDefinitionBuilder is deleted. Other tests in this directory are also affected.
…
const $root_r1$ = $r3$.ɵɵnextContext();
const $ctx_r2$ = $r3$.ɵɵnextContext();
…
$r3$.ɵɵtextInterpolate3(" Inner: ", $ctx_r2$.value(), "/", $root_r1$, "/", ctx, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵconditional(($MyApp_Conditional_0_Conditional_1_contFlowTmp$ = $ctx_r2$.value()) ? 1 : -1, $MyApp_Conditional_0_Conditional_1_contFlowTmp$);
}
}
function MyApp_Conditional_0_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0);
$r3$.ɵɵtemplate(1, MyApp_Conditional_0_Conditional_1_Template, 2, 4);
}
if (rf & 2) {
…
const $ctx_r0$ = $r3$.ɵɵnextContext();
…
$r3$.ɵɵtextInterpolate2(" Root: ", $ctx_r0$.value(), "/", ctx, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵconditional(($MyApp_Conditional_0_contFlowTmp$ = $ctx_r0$.value()) ? 1 : -1, $MyApp_Conditional_0_contFlowTmp$);
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtemplate(0, MyApp_Conditional_0_Template, 2, 3);
}
if (rf & 2) {
let $MyApp_contFlowTmp$;
$r3$.ɵɵconditional(($MyApp_contFlowTmp$ = ctx.value()) ? 0 : -1, $MyApp_contFlowTmp$);
}
}
| {
"end_byte": 2009,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_nested_alias_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_computed_template_variables_template.js_0_2359 | function MyApp_For_1_For_2_For_4_Template(rf, ctx) {
…
if (rf & 2) {
const $index_r14$ = ctx.$index;
const $count_r16$ = ctx.$count;
const $ctx_r18$ = $r3$.ɵɵnextContext();
const $index_2_r9$ = $ctx_r18$.$index;
const $count_2_r11$ = $ctx_r18$.$count;
const $ctx_r19$ = $r3$.ɵɵnextContext();
const $index_2_r3$ = $ctx_r19$.$index;
const $count_2_r5$ = $ctx_r19$.$count;
$r3$.ɵɵtextInterpolate4(" Innermost vars: ", $index_r14$ % 2 !== 0, " ", $index_r14$ % 2 === 0, " ", $index_r14$ === 0, " ", $index_r14$ === $count_r16$ - 1, " ");
$r3$.ɵɵadvance(2);
$r3$.ɵɵtextInterpolate4(" Inner vars: ", $index_2_r9$ % 2 !== 0, " ", $index_2_r9$ % 2 === 0, " ", $index_2_r9$ === 0, " ", $index_2_r9$ === $count_2_r11$ - 1, " ");
$r3$.ɵɵadvance(2);
$r3$.ɵɵtextInterpolate4(" Outer vars: ", $index_2_r3$ % 2 !== 0, " ", $index_2_r3$ % 2 === 0, " ", $index_2_r3$ === 0, " ", $index_2_r3$ === $count_2_r5$ - 1, " ");
}
}
function MyApp_For_1_For_2_Template(rf, ctx) {
…
if (rf & 2) {
const $index_r8$ = ctx.$index;
const $count_r10$ = ctx.$count;
const $ctx_r20$ = $r3$.ɵɵnextContext();
const $index_1_r3$ = $ctx_r20$.$index;
const $count_1_r5$ = $ctx_r20$.$count;
const $ctx_r6$ = $r3$.ɵɵnextContext();
$r3$.ɵɵtextInterpolate4(" Inner vars: ", $index_r8$ % 2 !== 0, " ", $index_r8$ % 2 === 0, " ", $index_r8$ === 0, " ", $index_r8$ === $count_r10$ - 1, " ");
$r3$.ɵɵadvance(2);
$r3$.ɵɵtextInterpolate4(" Outer vars: ", $index_1_r3$ % 2 !== 0, " ", $index_1_r3$ % 2 === 0, " ", $index_1_r3$ === 0, " ", $index_1_r3$ === $count_1_r5$ - 1, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵrepeater($ctx_r6$.items);
}
}
…
function MyApp_For_1_Template(rf, ctx) {
…
if (rf & 2) {
const $index_r2$ = ctx.$index;
const $count_r4$ = ctx.$count;
const $ctx_r0$ = $r3$.ɵɵnextContext();
$r3$.ɵɵtextInterpolate4(" Outer vars: ", $index_r2$ % 2 !== 0, " ", $index_r2$ % 2 === 0, " ", $index_r2$ === 0, " ", $index_r2$ === $count_r4$ - 1, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵrepeater($ctx_r0$.items);
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵrepeaterCreate(0, MyApp_For_1_Template, 3, 4, null, null, $r3$.ɵɵrepeaterTrackByIdentity);
}
if (rf & 2) {
$r3$.ɵɵrepeater(ctx.items);
}
}
| {
"end_byte": 2359,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_computed_template_variables_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_if.ts_0_247 | import {Component} from '@angular/core';
@Component({
template: `
<div>
{{message}}
@if (value()) {
hello
}
</div>
`,
standalone: false
})
export class MyApp {
message = 'hello';
value = () => 1;
}
| {
"end_byte": 247,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_if.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_data_slots_template.js_0_435 | function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtemplate(0, MyApp_ng_template_0_Template, 0, 0, "ng-template");
$r3$.ɵɵrepeaterCreate(1, MyApp_For_2_Template, 1, 1, null, null, $r3$.ɵɵrepeaterTrackByIdentity, false, MyApp_ForEmpty_3_Template, 1, 0);
$r3$.ɵɵtemplate(4, MyApp_ng_template_4_Template, 0, 0, "ng-template");
}
if (rf & 2) {
$r3$.ɵɵadvance();
$r3$.ɵɵrepeater(ctx.items);
}
}
| {
"end_byte": 435,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_data_slots_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_template_root_node.ts_0_564 | import {Component, Directive, Input} from '@angular/core';
@Directive({selector: '[binding]'})
export class Binding {
@Input() binding = 0;
}
@Component({
template: `
@switch (expr) {
@case (0) {
<ng-template foo="1" bar="2" [binding]="3">{{expr}}</ng-template>
}
@case (1) {
<ng-template foo="4" bar="5" [binding]="6">{{expr}}</ng-template>
}
@default {
<ng-template foo="7" bar="8" [binding]="9">{{expr}}</ng-template>
}
}
`,
imports: [Binding],
})
export class MyApp {
expr = 0;
}
| {
"end_byte": 564,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_template_root_node.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_with_empty.ts_0_349 | import {Component} from '@angular/core';
@Component({
template: `
<div>
{{message}}
@for (item of items; track item) {
{{item.name}}
} @empty {
No items!
}
</div>
`,
standalone: false
})
export class MyApp {
message = 'hello';
items = [{name: 'one'}, {name: 'two'}, {name: 'three'}];
}
| {
"end_byte": 349,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_with_empty.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_both_aliased_and_original_variables.ts_0_720 | import {Component} from '@angular/core';
@Component({
template: `
<div>
{{message}}
@for (item of items; track item; let idx = $index, f = $first; let l = $last, ev = $even, o = $odd; let co = $count) {
Original index: {{$index}}
Original first: {{$first}}
Original last: {{$last}}
Original even: {{$even}}
Original odd: {{$odd}}
Original count: {{$count}}
<hr>
Aliased index: {{idx}}
Aliased first: {{f}}
Aliased last: {{l}}
Aliased even: {{ev}}
Aliased odd: {{o}}
Aliased count: {{co}}
}
</div>
`,
standalone: false
})
export class MyApp {
message = 'hello';
items = [];
}
| {
"end_byte": 720,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_both_aliased_and_original_variables.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_root_node.ts_0_461 | import {Component, Directive, Input} from '@angular/core';
@Directive({selector: '[binding]'})
export class Binding {
@Input() binding = 0;
}
@Component({
template: `
@for (item of items; track item) {
<ng-template foo="1" bar="2" [binding]="3">{{item}}</ng-template>
} @empty {
<ng-template empty-foo="1" empty-bar="2" [binding]="3">Empty!</ng-template>
}
`,
imports: [Binding],
})
export class MyApp {
items = [1, 2, 3];
}
| {
"end_byte": 461,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_root_node.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_track_by_field_template.js_0_657 | const $_forTrack0$ = ($index, $item) => $item.name[0].toUpperCase();
function MyApp_For_3_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0);
}
if (rf & 2) {
const $item_r1$ = ctx.$implicit;
$r3$.ɵɵtextInterpolate1(" ", $item_r1$.name, " ");
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵtext(1);
$r3$.ɵɵrepeaterCreate(2, MyApp_For_3_Template, 1, 1, null, null, $_forTrack0$);
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1(" ", ctx.message, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵrepeater(ctx.items);
}
}
| {
"end_byte": 657,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_track_by_field_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_impure_track_reuse_template.js_0_448 | function $_forTrack0$($index, $item) {
return this.trackFn($item, this.message);
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵrepeaterCreate(0, MyApp_For_1_Template, 1, 1, null, null, $_forTrack0$, true);
$r3$.ɵɵrepeaterCreate(2, MyApp_For_3_Template, 1, 1, null, null, $_forTrack0$, true);
}
if (rf & 2) {
$r3$.ɵɵrepeater(ctx.items);
$r3$.ɵɵadvance(2);
$r3$.ɵɵrepeater(ctx.otherItems);
}
}
| {
"end_byte": 448,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_impure_track_reuse_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_tracking_function_template.js_0_1061 | function _forTrack0($index, $item) {
return this.trackByGrandparent($item, $index);
}
function _forTrack1($index, $item) {
return this.trackByParent($item, $index);
}
function _forTrack2($index, $item) {
return this.trackByChild($item, $index);
}
function MyApp_For_1_For_1_For_1_Template(rf, ctx) {}
function MyApp_For_1_For_1_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵrepeaterCreate(0, MyApp_For_1_For_1_For_1_Template, 0, 0, null, null, _forTrack2, true);
}
if (rf & 2) {
const $parent_r7$ = ctx.$implicit;
$r3$.ɵɵrepeater($parent_r7$.items);
}
}
function MyApp_For_1_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵrepeaterCreate(0, MyApp_For_1_For_1_Template, 2, 0, null, null, _forTrack1, true);
}
if (rf & 2) {
const $grandparent_r1$ = ctx.$implicit;
$r3$.ɵɵrepeater($grandparent_r1$.items);
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵrepeaterCreate(0, MyApp_For_1_Template, 2, 0, null, null, _forTrack0, true);
}
if (rf & 2) {
$r3$.ɵɵrepeater(ctx.items);
}
}
| {
"end_byte": 1061,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_tracking_function_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_switch_template.js_0_984 | function MyApp_Case_2_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0, " case 0 ");
}
}
function MyApp_Case_3_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0, " case 1 ");
}
}
function MyApp_Case_4_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0, " case 2 ");
}
}
function MyApp_Case_5_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0, " default ");
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵtext(1);
$r3$.ɵɵtemplate(2, MyApp_Case_2_Template, 1, 0)(3, MyApp_Case_3_Template, 1, 0)(4, MyApp_Case_4_Template, 1, 0)(5, MyApp_Case_5_Template, 1, 0);
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
let $MyApp_contFlowTmp$;
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1(" ", ctx.message, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵconditional(($MyApp_contFlowTmp$ = ctx.value()) === 0 ? 2 : $MyApp_contFlowTmp$ === 1 ? 3 : $MyApp_contFlowTmp$ === 2 ? 4 : 5);
}
}
| {
"end_byte": 984,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_switch_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_with_pipe_template.js_0_461 | function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵtext(1);
$r3$.ɵɵrepeaterCreate(2, MyApp_For_3_Template, 1, 1, null, null, $r3$.ɵɵrepeaterTrackByIdentity);
$r3$.ɵɵpipe(4, "test");
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1(" ", ctx.message, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵrepeater($r3$.ɵɵpipeBind1(4, 1, ctx.items));
}
}
| {
"end_byte": 461,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_with_pipe_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_with_pipe_template.pipeline.js_0_921 | function $MyApp_Conditional_3_Template$(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0, " one ");
}
}
function $MyApp_Conditional_5_Template$(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0, " two ");
}
}
function $MyApp_Conditional_6_Template$(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0, " three ");
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵtext(1);
$r3$.ɵɵtemplate(2, MyApp_Conditional_2_Template, 1, 0);
$r3$.ɵɵpipe(3, "test");
$r3$.ɵɵpipe(4, "test");
$r3$.ɵɵtemplate(5, MyApp_Conditional_5_Template, 1, 0)(6, MyApp_Conditional_6_Template, 1, 0);
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1(" ", ctx.message, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵconditional($r3$.ɵɵpipeBind1(3, 2, ctx.val) === 1 ? 2 : $r3$.ɵɵpipeBind1(4, 4, ctx.val) === 2 ? 5 : 6);
}
}
| {
"end_byte": 921,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_with_pipe_template.pipeline.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_variables_listener_template.pipeline.js_0_1006 | function MyApp_For_3_Template(rf, ctx) {
if (rf & 1) {
const $_r5$ = $r3$.ɵɵgetCurrentView();
$r3$.ɵɵelementStart(0, "div", 0);
$r3$.ɵɵlistener("click", function MyApp_For_3_Template_div_click_0_listener() {
const $restoredCtx$ = $r3$.ɵɵrestoreView($_r5$);
const $index_r2$ = $restoredCtx$.$index;
const $index_2_r2$ = $restoredCtx$.$index;
const $count_r3$ = $restoredCtx$.$count;
const $ctx_r4$ = $r3$.ɵɵnextContext();
return $r3$.ɵɵresetView($ctx_r4$.log($index_r2$, $index_2_r2$ % 2 === 0, $index_2_r2$ === 0, $count_r3$));
});
$r3$.ɵɵelementEnd();
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵtext(1);
$r3$.ɵɵrepeaterCreate(2, MyApp_For_3_Template, 1, 0, "div", null, $r3$.ɵɵrepeaterTrackByIdentity);
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1(" ", ctx.message, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵrepeater(ctx.items);
}
}
| {
"end_byte": 1006,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_template_variables_listener_template.pipeline.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_both_aliased_and_original_variables_template.js_0_1305 | function MyApp_For_3_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0);
$r3$.ɵɵelement(1, "hr");
$r3$.ɵɵtext(2);
}
if (rf & 2) {
const $index_r1$ = ctx.$index;
const $index_4_r2$ = ctx.$index;
const $count_r3$ = ctx.$count;
const $count_4_r4$ = ctx.$count;
$r3$.ɵɵtextInterpolate6(" Original index: ", $index_r1$, " Original first: ", $index_4_r2$ === 0, " Original last: ", $index_4_r2$ === $count_4_r4$ - 1, " Original even: ", $index_4_r2$ % 2 === 0, " Original odd: ", $index_4_r2$ % 2 !== 0, " Original count: ", $count_r3$, " ");
$r3$.ɵɵadvance(2);
$r3$.ɵɵtextInterpolate6(" Aliased index: ", $index_4_r2$, " Aliased first: ", $index_4_r2$ === 0, " Aliased last: ", $index_4_r2$ === $count_4_r4$ - 1, " Aliased even: ", $index_4_r2$ % 2 === 0, " Aliased odd: ", $index_4_r2$ % 2 !== 0, " Aliased count: ", $count_4_r4$, " ");
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵtext(1);
$r3$.ɵɵrepeaterCreate(2, MyApp_For_3_Template, 3, 12, null, null, $r3$.ɵɵrepeaterTrackByIdentity);
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1(" ", ctx.message, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵrepeater(ctx.items);
}
}
| {
"end_byte": 1305,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_both_aliased_and_original_variables_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_aliased_template_variables_template.pipeline.js_0_772 | function MyApp_For_3_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0);
}
if (rf & 2) {
const $idx_r2$ = ctx.$index;
const $co_r2$ = ctx.$count;
$r3$.ɵɵtextInterpolate6(" Index: ", $idx_r2$, " First: ", $idx_r2$ === 0, " Last: ", $idx_r2$ === $co_r2$ - 1, " Even: ", $idx_r2$ % 2 === 0, " Odd: ", $idx_r2$ % 2 !== 0, " Count: ", $co_r2$, " ");
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵtext(1);
$r3$.ɵɵrepeaterCreate(2, MyApp_For_3_Template, 1, 6, null, null, $r3$.ɵɵrepeaterTrackByIdentity);
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1(" ", ctx.message, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵrepeater(ctx.items);
}
}
| {
"end_byte": 772,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_aliased_template_variables_template.pipeline.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_nested_alias.ts_0_413 | import {Component} from '@angular/core';
@Component({
template: `
@if (value(); as root) {
Root: {{value()}}/{{root}}
@if (value(); as inner) {
Inner: {{value()}}/{{root}}/{{inner}}
@if (value(); as innermost) {
Innermost: {{value()}}/{{root}}/{{inner}}/{{innermost}}
}
}
}
`,
standalone: false
})
export class MyApp {
value = () => 1;
}
| {
"end_byte": 413,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/if_nested_alias.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_track_literals.ts_0_318 | import {Component} from '@angular/core';
@Component({
template: `
@for (item of items; track trackFn({foo: item, bar: item}, [item, item])) {
{{item.name}}
}
`,
standalone: false
})
export class MyApp {
items: {name: string}[] = [];
trackFn(obj: any, arr: any[]) {
return null;
}
}
| {
"end_byte": 318,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/for_track_literals.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_with_pipe_template.pipeline.js_0_698 | function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵtext(1);
$r3$.ɵɵtemplate(2, MyApp_Case_2_Template, 1, 0);
$r3$.ɵɵpipe(3, "test");
$r3$.ɵɵpipe(4, "test");
$r3$.ɵɵpipe(5, "test");
$r3$.ɵɵtemplate(6, MyApp_Case_6_Template, 1, 0)(7, MyApp_Case_7_Template, 1, 0);
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
let $MyApp_contFlowTmp$;
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1(" ", ctx.message, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵconditional(($MyApp_contFlowTmp$ = $r3$.ɵɵpipeBind1(3, 2, ctx.value())) === $r3$.ɵɵpipeBind1(4, 4, 0) ? 2 : $MyApp_contFlowTmp$ === $r3$.ɵɵpipeBind1(5, 6, 1) ? 6 : 7);
}
}
| {
"end_byte": 698,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_with_pipe_template.pipeline.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_with_pipe.ts_0_504 | import {Component, Pipe} from '@angular/core';
@Pipe({name: 'test'})
export class TestPipe {
transform(value: unknown) {
return value;
}
}
@Component({
template: `
<div>
{{message}}
@switch (value() | test) {
@case (0 | test) {
case 0
}
@case (1 | test) {
case 1
}
@default {
default
}
}
</div>
`,
imports: [TestPipe]
})
export class MyApp {
message = 'hello';
value = () => 1;
}
| {
"end_byte": 504,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/switch_with_pipe.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_template.js_0_1073 | function MyApp_For_3_For_2_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0);
}
if (rf & 2) {
const $subitem_r5$ = ctx.$implicit;
const $item_r1$ = $r3$.ɵɵnextContext().$implicit;
$r3$.ɵɵtextInterpolate2(" ", $subitem_r5$, " from ", $item_r1$.name, " ");
}
}
function MyApp_For_3_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtext(0);
$r3$.ɵɵrepeaterCreate(1, MyApp_For_3_For_2_Template, 1, 2, null, null, $r3$.ɵɵrepeaterTrackByIndex);
}
if (rf & 2) {
const $item_r1$ = ctx.$implicit;
$r3$.ɵɵtextInterpolate1(" ", $item_r1$.name, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵrepeater($item_r1$.subItems);
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵtext(1);
$r3$.ɵɵrepeaterCreate(2, MyApp_For_3_Template, 3, 1, null, null, $r3$.ɵɵrepeaterTrackByIdentity);
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1(" ", ctx.message, " ");
$r3$.ɵɵadvance();
$r3$.ɵɵrepeater(ctx.items);
}
}
| {
"end_byte": 1073,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/nested_for_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/conditional_same_component_names.ts_0_466 | import {Component} from '@angular/core';
function it(_desc: string, fn: () => void) {}
it('case 1', () => {
@Component({
template: `
@if (true) {
First
} @else {
Second
}
`,
standalone: false
})
class TestComponent {
}
});
it('case 2', () => {
@Component({
template: `
@if (true) {
First
} @else {
Second
}
`,
standalone: false
})
class TestComponent {
}
});
| {
"end_byte": 466,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/conditional_same_component_names.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_if_else.ts_0_279 | import {Component} from '@angular/core';
@Component({
template: `
<div>
{{message}}
@if (value()) {
hello
} @else {
goodbye
}
</div>
`,
standalone: false
})
export class MyApp {
message = 'hello';
value = () => 1;
}
| {
"end_byte": 279,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/basic_if_else.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/escaped_chars.ts_0_172 | import {Component} from '@angular/core';
@Component({
selector: 'test-cmp',
templateUrl: './escaped_chars.html',
standalone: false
})
export class TestCmp {
}
| {
"end_byte": 172,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/escaped_chars.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/external_template.ts_0_167 | import {Component} from '@angular/core';
@Component({
selector: 'test-cmp',
templateUrl: './dir/test.html',
standalone: false
})
export class TestCmp {
}
| {
"end_byte": 167,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/external_template.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/GOLDEN_PARTIAL.js_0_7633 | /****************************************************************************************************
* PARTIAL FILE: external_template.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class TestCmp {
}
TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: "<div>this is a test</div>\n<div>{{ 1 + 2 }}</div>" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{
type: Component,
args: [{ selector: 'test-cmp', standalone: false, template: "<div>this is a test</div>\n<div>{{ 1 + 2 }}</div>" }]
}] });
//# sourceMappingURL=external_template.js.map
/****************************************************************************************************
* PARTIAL FILE: external_template.js.map
****************************************************************************************************/
{"version":3,"file":"external_template.js","sourceRoot":"","sources":["../external_template.ts","../dir/test.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAOxC,MAAM,OAAO,OAAO;;+GAAP,OAAO;mGAAP,OAAO,qECPpB,mDACsB;sGDMT,OAAO;kBALnB,SAAS;+BACI,UAAU,cAER,KAAK","sourcesContent":["import {Component} from '@angular/core';\n\n@Component({\n selector: 'test-cmp',\n templateUrl: './dir/test.html',\n standalone: false\n})\nexport class TestCmp {\n}\n","<div>this is a test</div>\n<div>{{ 1 + 2 }}</div>"]}
/****************************************************************************************************
* PARTIAL FILE: external_template.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestCmp {
static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: external_template.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class TestCmp {
}
TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: "<div>this is a test</div>\n<div>{{ 1 + 2 }}</div>" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{
type: Component,
args: [{ selector: 'test-cmp', standalone: false, template: "<div>this is a test</div>\n<div>{{ 1 + 2 }}</div>" }]
}] });
//# sourceMappingURL=external_template.js.map
/****************************************************************************************************
* PARTIAL FILE: external_template.js.map
****************************************************************************************************/
{"version":3,"file":"external_template.js","sourceRoot":"","sources":["../external_template.ts","../dir/test.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAOxC,MAAM,OAAO,OAAO;;+GAAP,OAAO;mGAAP,OAAO,qECPpB,mDACsB;sGDMT,OAAO;kBALnB,SAAS;+BACI,UAAU,cAER,KAAK","sourcesContent":["import {Component} from '@angular/core';\n\n@Component({\n selector: 'test-cmp',\n templateUrl: './dir/test.html',\n standalone: false\n})\nexport class TestCmp {\n}\n","<div>this is a test</div>\n<div>{{ 1 + 2 }}</div>"]}
/****************************************************************************************************
* PARTIAL FILE: external_template.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestCmp {
static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: extra_root_dir.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class TestCmp {
}
TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: "<div>this is a test</div>\n<div>{{ 1 + 2 }}</div>" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{
type: Component,
args: [{ selector: 'test-cmp', standalone: false, template: "<div>this is a test</div>\n<div>{{ 1 + 2 }}</div>" }]
}] });
//# sourceMappingURL=extra_root_dir.js.map
/****************************************************************************************************
* PARTIAL FILE: extra_root_dir.js.map
****************************************************************************************************/
{"version":3,"file":"extra_root_dir.js","sourceRoot":"","sources":["../extra_root_dir.ts","../extraRootDir/dir/extra.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAOxC,MAAM,OAAO,OAAO;;+GAAP,OAAO;mGAAP,OAAO,qECPpB,mDACsB;sGDMT,OAAO;kBALnB,SAAS;+BACI,UAAU,cAER,KAAK","sourcesContent":["import {Component} from '@angular/core';\n\n@Component({\n selector: 'test-cmp',\n templateUrl: './dir/extra.html',\n standalone: false\n})\nexport class TestCmp {\n}\n","<div>this is a test</div>\n<div>{{ 1 + 2 }}</div>"]}
/****************************************************************************************************
* PARTIAL FILE: extra_root_dir.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestCmp {
static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: extra_root_dir.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class TestCmp {
}
TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: | {
"end_byte": 7633,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/GOLDEN_PARTIAL.js_7634_14653 | "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: "<div>this is a test</div>\n<div>{{ 1 + 2 }}</div>" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{
type: Component,
args: [{ selector: 'test-cmp', standalone: false, template: "<div>this is a test</div>\n<div>{{ 1 + 2 }}</div>" }]
}] });
//# sourceMappingURL=extra_root_dir.js.map
/****************************************************************************************************
* PARTIAL FILE: extra_root_dir.js.map
****************************************************************************************************/
{"version":3,"file":"extra_root_dir.js","sourceRoot":"","sources":["../extra_root_dir.ts","../extraRootDir/dir/extra.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAOxC,MAAM,OAAO,OAAO;;+GAAP,OAAO;mGAAP,OAAO,qECPpB,mDACsB;sGDMT,OAAO;kBALnB,SAAS;+BACI,UAAU,cAER,KAAK","sourcesContent":["import {Component} from '@angular/core';\n\n@Component({\n selector: 'test-cmp',\n templateUrl: './dir/extra.html',\n standalone: false\n})\nexport class TestCmp {\n}\n","<div>this is a test</div>\n<div>{{ 1 + 2 }}</div>"]}
/****************************************************************************************************
* PARTIAL FILE: extra_root_dir.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestCmp {
static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: escaped_chars.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class TestCmp {
}
TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: "<!--\n NOTE: This template has escaped `\\r\\n` line-endings markers that will be converted to real `\\r\\n` line-ending chars when loaded from the test file-system.\n This conversion happens in the monkeyPatchReadFile() function, which changes `fs.readFile()`.\n-->\n<div>\r\n Some Message\r\n Encoded character: \uD83D\uDE80\r\n</div>" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{
type: Component,
args: [{ selector: 'test-cmp', standalone: false, template: "<!--\n NOTE: This template has escaped `\\r\\n` line-endings markers that will be converted to real `\\r\\n` line-ending chars when loaded from the test file-system.\n This conversion happens in the monkeyPatchReadFile() function, which changes `fs.readFile()`.\n-->\n<div>\r\n Some Message\r\n Encoded character: \uD83D\uDE80\r\n</div>" }]
}] });
//# sourceMappingURL=escaped_chars.js.map
/****************************************************************************************************
* PARTIAL FILE: escaped_chars.js.map
****************************************************************************************************/
{"version":3,"file":"escaped_chars.js","sourceRoot":"","sources":["../escaped_chars.ts","../escaped_chars.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAOxC,MAAM,OAAO,OAAO;;+GAAP,OAAO;mGAAP,OAAO,qECPpB,4VAOM;sGDAO,OAAO;kBALnB,SAAS;+BACI,UAAU,cAER,KAAK","sourcesContent":["import {Component} from '@angular/core';\n\n@Component({\n selector: 'test-cmp',\n templateUrl: './escaped_chars.html',\n standalone: false\n})\nexport class TestCmp {\n}\n","<!--\n NOTE: This template has escaped `\\r\\n` line-endings markers that will be converted to real `\\r\\n` line-ending chars when loaded from the test file-system.\n This conversion happens in the monkeyPatchReadFile() function, which changes `fs.readFile()`.\n-->\n<div>\r\n Some Message\r\n Encoded character: 🚀\r\n</div>"]}
/****************************************************************************************************
* PARTIAL FILE: escaped_chars.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestCmp {
static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: escaped_chars.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class TestCmp {
}
TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: "<!--\n NOTE: This template has escaped `\\r\\n` line-endings markers that will be converted to real `\\r\\n` line-ending chars when loaded from the test file-system.\n This conversion happens in the monkeyPatchReadFile() function, which changes `fs.readFile()`.\n-->\n<div>\r\n Some Message\r\n Encoded character: \uD83D\uDE80\r\n</div>" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{
type: Component,
args: [{ selector: 'test-cmp', standalone: false, template: "<!--\n NOTE: This template has escaped `\\r\\n` line-endings markers that will be converted to real `\\r\\n` line-ending chars when loaded from the test file-system.\n This conversion happens in the monkeyPatchReadFile() function, which changes `fs.readFile()`.\n-->\n<div>\r\n Some Message\r\n Encoded character: \uD83D\uDE80\r\n</div>" }]
}] });
//# sourceMappingURL=escaped_chars.js.map
/****************************************************************************************************
* PARTIAL FILE: escaped_chars.js.map
****************************************************************************************************/
{"version":3,"file":"escaped_chars.js","sourceRoot":"","sources":["../escaped_chars.ts","../ | {
"end_byte": 14653,
"start_byte": 7634,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/GOLDEN_PARTIAL.js_14654_15960 | scaped_chars.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAOxC,MAAM,OAAO,OAAO;;+GAAP,OAAO;mGAAP,OAAO,qECPpB,4VAOM;sGDAO,OAAO;kBALnB,SAAS;+BACI,UAAU,cAER,KAAK","sourcesContent":["import {Component} from '@angular/core';\n\n@Component({\n selector: 'test-cmp',\n templateUrl: './escaped_chars.html',\n standalone: false\n})\nexport class TestCmp {\n}\n","<!--\n NOTE: This template has escaped `\\r\\n` line-endings markers that will be converted to real `\\r\\n` line-ending chars when loaded from the test file-system.\n This conversion happens in the monkeyPatchReadFile() function, which changes `fs.readFile()`.\n-->\n<div>\r\n Some Message\r\n Encoded character: 🚀\r\n</div>"]}
/****************************************************************************************************
* PARTIAL FILE: escaped_chars.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestCmp {
static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, false, never>;
}
| {
"end_byte": 15960,
"start_byte": 14654,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/extra_root_dir.ts_0_168 | import {Component} from '@angular/core';
@Component({
selector: 'test-cmp',
templateUrl: './dir/extra.html',
standalone: false
})
export class TestCmp {
}
| {
"end_byte": 168,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/extra_root_dir.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/external_template.js_0_477 | i0.ɵɵelementStart(0, "div") // SOURCE: "/dir/test.html" "<div>"
…
i0.ɵɵtext(1, "this is a test") // SOURCE: "/dir/test.html" "this is a test"
…
i0.ɵɵelementEnd() // SOURCE: "/dir/test.html" "</div>"
…
i0.ɵɵelementStart(2, "div") // SOURCE: "/dir/test.html" "<div>"
…
i0.ɵɵtext(3) // SOURCE: "/dir/test.html" "{{ 1 + 2 }}"
…
i0.ɵɵelementEnd() // SOURCE: "/dir/test.html" "</div>"
…
i0.ɵɵtextInterpolate(1 + 2) // SOURCE: "/dir/test.html" "{{ 1 + 2 }}"
| {
"end_byte": 477,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/external_template.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/escaped_chars.js_0_439 | i0.ɵɵelementStart(0, "div") // SOURCE: "/escaped_chars.html" "<div>"
…
// NOTE: the `\\r\\n` at the end of the next line will be unescaped to `\r\n`. If it was just `\r\n` it would get unescaped to the actual characters.
i0.ɵɵtext(1, " Some Message Encoded character: \uD83D\uDE80\\n") // SOURCE: "/escaped_chars.html" "Some Message\r\n Encoded character: 🚀\r\n"
…
i0.ɵɵelementEnd() // SOURCE: "/escaped_chars.html" "</div>"
| {
"end_byte": 439,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/escaped_chars.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/extra_root_dir.js_0_575 | i0.ɵɵelementStart(0, "div") // SOURCE: "/extraRootDir/dir/extra.html" "<div>"
…
i0.ɵɵtext(1, "this is a test") // SOURCE: "/extraRootDir/dir/extra.html" "this is a test"
…
i0.ɵɵelementEnd() // SOURCE: "/extraRootDir/dir/extra.html" "</div>"
…
i0.ɵɵelementStart(2, "div") // SOURCE: "/extraRootDir/dir/extra.html" "<div>"
…
i0.ɵɵtext(3) // SOURCE: "/extraRootDir/dir/extra.html" "{{ 1 + 2 }}"
…
i0.ɵɵelementEnd() // SOURCE: "/extraRootDir/dir/extra.html" "</div>"
…
i0.ɵɵtextInterpolate(1 + 2) // SOURCE: "/extraRootDir/dir/extra.html" "{{ 1 + 2 }}"
| {
"end_byte": 575,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/extra_root_dir.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/escaped_chars.html_0_333 | <!--
NOTE: This template has escaped `\r\n` line-endings markers that will be converted to real `\r\n` line-ending chars when loaded from the test file-system.
This conversion happens in the monkeyPatchReadFile() function, which changes `fs.readFile()`.
-->
<div>\r\n
Some Message\r\n
Encoded character: 🚀\r\n
</div> | {
"end_byte": 333,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/escaped_chars.html"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/extraRootDir/dir/extra.html_0_48 | <div>this is a test</div>
<div>{{ 1 + 2 }}</div> | {
"end_byte": 48,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/extraRootDir/dir/extra.html"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/dir/test.html_0_48 | <div>this is a test</div>
<div>{{ 1 + 2 }}</div> | {
"end_byte": 48,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/dir/test.html"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/output_binding_complex.ts_0_242 | import {Component} from '@angular/core';
@Component({
selector: 'test-cmp',
template: `<button (click)="items.push('item' + items.length)">Add Item</button>`,
standalone: false
})
export class TestCmp {
items: string[] = [];
}
| {
"end_byte": 242,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/output_binding_complex.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/update_mode.js_0_528 | // NOTE: Creation mode
i0.ɵɵelementStart(0, "div") // SOURCE: "/update_mode.ts" "<div>"
…
i0.ɵɵtext(1, "this is a test") // SOURCE: "/update_mode.ts" "this is a test"
…
i0.ɵɵelementEnd() // SOURCE: "/update_mode.ts" "</div>"
…
i0.ɵɵelementStart(2, "div") // SOURCE: "/update_mode.ts" "<div>"
…
i0.ɵɵtext(3) // SOURCE: "/update_mode.ts" "{{ 1 + 2 }}"
…
i0.ɵɵelementEnd() // SOURCE: "/update_mode.ts" "</div>"
…
// NOTE: Update mode
i0.ɵɵtextInterpolate(1 + 2) // SOURCE: "/update_mode.ts" "{{ 1 + 2 }}"
| {
"end_byte": 528,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/update_mode.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/interpolation_properties.js_0_185 | i0.ɵɵelement(0, "div", 0) // SOURCE: "/interpolation_properties.ts" "<div "
…
i0.ɵɵpropertyInterpolate("id", ctx.name) // SOURCE: "/interpolation_properties.ts" "id=\"{{name}}\""
| {
"end_byte": 185,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/interpolation_properties.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/output_binding_simple.js_0_455 | i0.ɵɵelementStart(0, "button", 0) // SOURCE: "/output_binding_simple.ts" "<button "
…
i0.ɵɵlistener("click", function TestCmp_Template_button_click_0_listener() { return // SOURCE: "/output_binding_simple.ts" "(click)=\""
…
ctx.doSomething() // SOURCE: "/output_binding_simple.ts" "doSomething()"
…
i0.ɵɵtext(1, "Do it") // SOURCE: "/output_binding_simple.ts" "Do it"
…
i0.ɵɵelementEnd() // SOURCE: "/output_binding_simple.ts" "</button>" | {
"end_byte": 455,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/output_binding_simple.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/ng_if_templated.ts_0_248 | import {Component} from '@angular/core';
@Component({
selector: 'test-cmp',
template: `
<ng-template [ngIf]="showMessage()">
<div>{{ name }}</div>
<hr>
</ng-template>`,
standalone: false
})
export class TestCmp {
}
| {
"end_byte": 248,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/ng_if_templated.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/ng_for_simple.js_0_666 | i0.ɵɵelementStart(0, "div") // SOURCE: "/ng_for_simple.ts" "<div *ngFor="let item "
…
i0.ɵɵtext(1) // SOURCE: "/ng_for_simple.ts" "{{ item }}"
…
i0.ɵɵelementEnd() // SOURCE: "/ng_for_simple.ts" "</div>"
…
i0.ɵɵadvance() // SOURCE: "/ng_for_simple.ts" "{{ item }}"
…
i0.ɵɵtextInterpolate(item_r1) // SOURCE: "/ng_for_simple.ts" "{{ item }}"
…
i0.ɵɵtemplate(0, TestCmp_div_0_Template, 2, 1, "div", 0) // SOURCE: "/ng_for_simple.ts" "<div *ngFor="let item "
…
i0.ɵɵproperty("ngForOf", ctx.items) // SOURCE: "/ng_for_simple.ts" "of items; "
…
("ngForTrackBy", ctx.trackByFn) // SOURCE: "/ng_for_simple.ts" "index as i; trackBy: trackByFn\">"
| {
"end_byte": 666,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/ng_for_simple.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/projection.ts_0_240 | import {Component} from '@angular/core';
@Component({
selector: 'test-cmp',
template: `
<h3><ng-content select="title"></ng-content></h3>
<div><ng-content></ng-content></div>`,
standalone: false
})
export class TestCmp {
}
| {
"end_byte": 240,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/projection.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/input_binding_complex.js_0_198 | i0.ɵɵelement(0, "div", 0) // SOURCE: "/input_binding_complex.ts" "<div "
…
i0.ɵɵproperty("title", ctx.greeting + ctx.name) // SOURCE: "/input_binding_complex.ts" "[title]=\"greeting + name\""
| {
"end_byte": 198,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/input_binding_complex.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/interpolation_basic.ts_0_195 | import {Component} from '@angular/core';
@Component({
selector: 'test-cmp',
template: '<h3>Hello {{ name }}</h3>',
standalone: false
})
export class TestCmp {
name: string = '';
}
| {
"end_byte": 195,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/interpolation_basic.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/escape_sequences.js_0_129 | consts: [[1, "some-class"]]
…
i0.ɵɵelementStart(0, "div", 0) // SOURCE: "/escape_sequences.ts" "<div class=\\"some-class\\">" | {
"end_byte": 129,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/escape_sequences.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/i18n_message_simple.js_0_153 | `Hello, World!` // SOURCE: "/i18n_message_simple.ts" "Hello, World!"
…
i0.ɵɵelementStart(0, "div") // SOURCE: "/i18n_message_simple.ts" "<div i18n>"
| {
"end_byte": 153,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/i18n_message_simple.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/ng_for_templated.ts_0_219 | import {Component} from '@angular/core';
@Component({
selector: 'test-cmp',
template: `<ng-template ngFor [ngForOf]="items" let-item>{{ item }}</ng-template>`,
standalone: false
})
export class TestCmp {
}
| {
"end_byte": 219,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/ng_for_templated.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/i18n_message_placeholder_entities.js_0_453 | `Interpolation: ${ // SOURCE: "/i18n_message_placeholder_entities.ts" "Interpolation: "
…
"\uFFFD0\uFFFD" // SOURCE: "/i18n_message_placeholder_entities.ts" "{{ one }}"
…
}:INTERPOLATION: Interpolation: ${ // SOURCE: "/i18n_message_placeholder_entities.ts" " Interpolation: "
…
"\uFFFD1\uFFFD" // SOURCE: "/i18n_message_placeholder_entities.ts" "{{ two }}"
…
}:INTERPOLATION_1:` // SOURCE: "/i18n_message_placeholder_entities.ts" "</div>"
| {
"end_byte": 453,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/i18n_message_placeholder_entities.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/i18n_message_element_whitespace.js_0_859 | ` pre-p ${ // SOURCE: "/i18n_message_element_whitespace.ts" "\\n pre-p\\n "
…
"\uFFFD#2\uFFFD" // SOURCE: "/i18n_message_element_whitespace.ts" "<p>"
…
}:START_PARAGRAPH: in-p ${ // SOURCE: "/i18n_message_element_whitespace.ts" "\\n in-p\\n "
…
"\uFFFD/#2\uFFFD" // SOURCE: "/i18n_message_element_whitespace.ts" "</p>"
…
}:CLOSE_PARAGRAPH: post-p\n` // SOURCE: "/i18n_message_element_whitespace.ts" "\\n post-p\\n"
…
i0.ɵɵelementStart(0, "div") // SOURCE: "/i18n_message_element_whitespace.ts" "<div i18n>"
…
i0.ɵɵi18nStart(1, 0) // SOURCE: "/i18n_message_element_whitespace.ts" "<div i18n>"
…
i0.ɵɵelement(2, "p") // SOURCE: "/i18n_message_element_whitespace.ts" "<p>"
…
i0.ɵɵi18nEnd() // SOURCE: "/i18n_message_element_whitespace.ts" "</div>"
…
i0.ɵɵelementEnd() // SOURCE: "/i18n_message_element_whitespace.ts" "</div>"
| {
"end_byte": 859,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/i18n_message_element_whitespace.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/two_way_binding_longhand.js_0_456 | i0.ɵɵelementStart(1, "input", 0) // SOURCE: "/two_way_binding_longhand.ts" "<input "
…
// TODO: improve mappings here
i0.ɵɵtwoWayListener("ngModelChange", function TestCmp_Template_input_ngModelChange_1_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.name, $event) || (ctx.name = $event); return $event; }) // SOURCE: "/two_way_binding_longhand.ts" "bindon-ngModel=\"name\""
…
i0.ɵɵelementEnd() // SOURCE: "/two_way_binding_longhand.ts" "<input "
| {
"end_byte": 456,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/two_way_binding_longhand.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/i18n_message_interpolation_whitespace.ts_0_311 | import {Component} from '@angular/core';
@Component({
selector: 'test-cmp',
template: '<div i18n title=" pre-title {{titleValue}} post-title" i18n-title> pre-body {{bodyValue}} post-body</div>',
standalone: false
})
export class TestCmp {
titleValue: string = '';
bodyValue: string = '';
}
| {
"end_byte": 311,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/i18n_message_interpolation_whitespace.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/input_binding_longhand.js_0_177 | i0.ɵɵelement(0, "div", 0) // SOURCE: "/input_binding_longhand.ts" "<div "
…
i0.ɵɵproperty("title", ctx.name) // SOURCE: "/input_binding_longhand.ts" "bind-title=\"name\""
| {
"end_byte": 177,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/input_binding_longhand.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/i18n_message_placeholder.js_0_369 | `Hello, ${ // SOURCE: "/i18n_message_placeholder.ts" "Hello, "
…
"\uFFFD0\uFFFD" // SOURCE: "/i18n_message_placeholder.ts" "{{name}}"
…
}:INTERPOLATION:!` // SOURCE: "/i18n_message_placeholder.ts" "!"
…
i0.ɵɵelementStart(0, "div") // SOURCE: "/i18n_message_placeholder.ts" "<div i18n>"
…
i0.ɵɵelementEnd() // SOURCE: "/i18n_message_placeholder.ts" "</div>"
| {
"end_byte": 369,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/i18n_message_placeholder.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/i18n_message_container_tag.js_0_532 | `Hello, ${ // SOURCE: "/i18n_message_container_tag.ts" "Hello, "
…
"\uFFFD#2\uFFFD" // SOURCE: "/i18n_message_container_tag.ts" "<b>"
…
}:START_BOLD_TEXT:World${ // SOURCE: "/i18n_message_container_tag.ts" "World"
…
"\uFFFD/#2\uFFFD" // SOURCE: "/i18n_message_container_tag.ts" "</b>"
…
}:CLOSE_BOLD_TEXT:!` // SOURCE: "/i18n_message_container_tag.ts" "!"
…
i0.ɵɵelementStart(0, "div") // SOURCE: "/i18n_message_container_tag.ts" "<div i18n>"
…
i0.ɵɵelementEnd() // SOURCE: "/i18n_message_container_tag.ts" "</div>"
| {
"end_byte": 532,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/i18n_message_container_tag.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/input_binding_class.ts_0_224 | import {Component} from '@angular/core';
@Component({
selector: 'test-cmp',
template: '<div [class.initial]="isInitial">Message</div>',
standalone: false
})
export class TestCmp {
isInitial: boolean = true;
}
| {
"end_byte": 224,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/input_binding_class.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/escape_sequences_partial.js_0_127 | consts: [[1, "some-class"]]
…
.ɵɵelementStart(0, "div", 0) // SOURCE: "/escape_sequences.ts" "<div class=\\"some-class\\">" | {
"end_byte": 127,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/escape_sequences_partial.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/interpolation_complex.ts_0_231 | import {Component} from '@angular/core';
@Component({
selector: 'test-cmp',
template: '<h2>{{ greeting + " " + name }}</h2>',
standalone: false
})
export class TestCmp {
greeting: string = '';
name: string = '';
}
| {
"end_byte": 231,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/interpolation_complex.ts"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js_0_7813 | /****************************************************************************************************
* PARTIAL FILE: simple_element.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class TestCmp {
}
TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: '<h1>Heading 1</h1>', isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{
type: Component,
args: [{
selector: 'test-cmp',
template: '<h1>Heading 1</h1>',
standalone: false
}]
}] });
//# sourceMappingURL=simple_element.js.map
/****************************************************************************************************
* 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;;AAOxC,MAAM,OAAO,OAAO;;+GAAP,OAAO;mGAAP,OAAO,qEAHN,oBAAoB;sGAGrB,OAAO;kBALnB,SAAS;mBAAC;oBACP,QAAQ,EAAE,UAAU;oBACpB,QAAQ,EAAE,oBAAoB;oBAC9B,UAAU,EAAE,KAAK;iBACpB"}
/****************************************************************************************************
* PARTIAL FILE: simple_element.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestCmp {
static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: simple_element.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class TestCmp {
}
TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: '<h1>Heading 1</h1>', isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{
type: Component,
args: [{
selector: 'test-cmp',
template: '<h1>Heading 1</h1>',
standalone: false
}]
}] });
//# sourceMappingURL=simple_element.js.map
/****************************************************************************************************
* 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;;AAOxC,MAAM,OAAO,OAAO;;+GAAP,OAAO;mGAAP,OAAO,qEAHN,oBAAoB;sGAGrB,OAAO;kBALnB,SAAS;mBAAC;oBACP,QAAQ,EAAE,UAAU;oBACpB,QAAQ,EAAE,oBAAoB;oBAC9B,UAAU,EAAE,KAAK;iBACpB"}
/****************************************************************************************************
* PARTIAL FILE: simple_element.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestCmp {
static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: void_element.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class TestCmp {
}
TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: '<hr>', isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{
type: Component,
args: [{
selector: 'test-cmp',
template: '<hr>',
standalone: false
}]
}] });
//# sourceMappingURL=void_element.js.map
/****************************************************************************************************
* 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;;AAOxC,MAAM,OAAO,OAAO;;+GAAP,OAAO;mGAAP,OAAO,qEAHN,MAAM;sGAGP,OAAO;kBALnB,SAAS;mBAAC;oBACP,QAAQ,EAAE,UAAU;oBACpB,QAAQ,EAAE,MAAM;oBAChB,UAAU,EAAE,KAAK;iBACpB"}
/****************************************************************************************************
* PARTIAL FILE: void_element.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestCmp {
static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: void_element.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class TestCmp {
}
TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: '<hr>', isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{
type: Component,
args: [{
selector: 'test-cmp',
template: '<hr>',
standalone: false
}]
}] });
//# sourceMappingURL=void_element.js.map
/****************************************************************************************************
* PARTIAL FILE: void_element.js.map
****************************************************************************************************/
{"version":3,"file":"void_element.js","sourceRoot":"","so | {
"end_byte": 7813,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js"
} |
angular/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js_7814_15509 | rces":["../void_element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;;AAOxC,MAAM,OAAO,OAAO;;+GAAP,OAAO;mGAAP,OAAO,qEAHN,MAAM;sGAGP,OAAO;kBALnB,SAAS;mBAAC;oBACP,QAAQ,EAAE,UAAU;oBACpB,QAAQ,EAAE,MAAM;oBAChB,UAAU,EAAE,KAAK;iBACpB"}
/****************************************************************************************************
* PARTIAL FILE: void_element.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestCmp {
static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: interpolation_basic.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class TestCmp {
constructor() {
this.name = '';
}
}
TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: '<h3>Hello {{ name }}</h3>', isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{
type: Component,
args: [{
selector: 'test-cmp',
template: '<h3>Hello {{ name }}</h3>',
standalone: false
}]
}] });
//# sourceMappingURL=interpolation_basic.js.map
/****************************************************************************************************
* 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;;AAOxC,MAAM,OAAO,OAAO;IALpB;QAME,SAAI,GAAW,EAAE,CAAC;KACnB;;+GAFY,OAAO;mGAAP,OAAO,qEAHN,2BAA2B;sGAG5B,OAAO;kBALnB,SAAS;mBAAC;oBACP,QAAQ,EAAE,UAAU;oBACpB,QAAQ,EAAE,2BAA2B;oBACrC,UAAU,EAAE,KAAK;iBACpB"}
/****************************************************************************************************
* PARTIAL FILE: interpolation_basic.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestCmp {
name: string;
static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: interpolation_basic.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class TestCmp {
constructor() {
this.name = '';
}
}
TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: '<h3>Hello {{ name }}</h3>', isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{
type: Component,
args: [{
selector: 'test-cmp',
template: '<h3>Hello {{ name }}</h3>',
standalone: false
}]
}] });
//# sourceMappingURL=interpolation_basic.js.map
/****************************************************************************************************
* 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;;AAOxC,MAAM,OAAO,OAAO;IALpB;QAME,SAAI,GAAW,EAAE,CAAC;KACnB;;+GAFY,OAAO;mGAAP,OAAO,qEAHN,2BAA2B;sGAG5B,OAAO;kBALnB,SAAS;mBAAC;oBACP,QAAQ,EAAE,UAAU;oBACpB,QAAQ,EAAE,2BAA2B;oBACrC,UAAU,EAAE,KAAK;iBACpB"}
/****************************************************************************************************
* PARTIAL FILE: interpolation_basic.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestCmp {
name: string;
static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, false, never>;
}
/****************************************************************************************************
* PARTIAL FILE: interpolation_complex.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
export class TestCmp {
constructor() {
this.greeting = '';
this.name = '';
}
}
TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: '<h2>{{ greeting + " " + name }}</h2>', isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{
type: Component,
args: [{
selector: 'test-cmp',
template: '<h2>{{ greeting + " " + name }}</h2>',
standalone: false
}]
}] });
//# sourceMappingURL=interpolation_complex.js.map
/****************************************************************************************************
* 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;;AAOxC,MAAM,OAAO,OAAO;IALpB;QAME,aAAQ,GAAW,EAAE,CAAC;QACtB,SAAI,GAAW,EAAE,CAAC;KACnB;;+GAHY,OAAO;mGAAP,OAAO,qEAHN,sCAAsC;sGAGvC,OAAO;kBALnB,SAAS;mBAAC;oBACP,QAAQ,EAAE,UAAU;oBACpB,QAAQ,EAAE,sCAAsC;oBAChD,UAAU,EAAE,KAAK;iBACpB"}
/****************************************************************************************************
* PARTIAL FILE: interpolation_complex.d.ts
****************************************************************************************************/
import * as i0 from "@angular/core";
export declare class TestCmp {
greeting: string;
name: string;
static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<Test | {
"end_byte": 15509,
"start_byte": 7814,
"url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.