_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/ng_project_as_attribute.js_0_627
MyApp.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MyApp, selectors: [ ["my-app"] ], standalone: false, decls: 1, vars: 1, consts: [ ["ngProjectAs", ".someclass", __AttributeMarker.ProjectAs__, ["", 8, "someclass"], __AttributeMarker.Template__, "ngIf"], ["ngProjectAs", ".someclass", __AttributeMarker.ProjectAs__, ["", 8, "someclass"]] ], template: function MyApp_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, MyApp_div_0_Template, 1, 0, "div", 0); } if (rf & 2) { i0.ɵɵproperty("ngIf", ctx.show); } }, encapsulation: 2 });
{ "end_byte": 627, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/ng_project_as_attribute.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/nested_template_consts.js_0_53
const $_c4$ = [[["span", "title", "tofirst"]], "*"];
{ "end_byte": 53, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/nested_template_consts.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/ng_content_fallback.js_0_2256
const $_c0$ = [[["basic"]], "*", [["footer"]], [["structural"]]]; const $_c1$ = ["basic", "*", "footer", "structural"]; function TestComponent_ProjectionFallback_0_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0, "Basic fallback"); } } function TestComponent_ProjectionFallback_3_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "h1"); $r3$.ɵɵtext(1); $r3$.ɵɵelementStart(2, "strong"); $r3$.ɵɵtext(3, "content"); $r3$.ɵɵelementEnd(); $r3$.ɵɵtext(4, "!"); $r3$.ɵɵelementEnd(); } if (rf & 2) { const $ctx_r0$ = $r3$.ɵɵnextContext(); $r3$.ɵɵadvance(); $r3$.ɵɵtextInterpolate1("This is ", $ctx_r0$.type, " "); } } function TestComponent_Conditional_5_ProjectionFallback_0_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0, " Inside control flow "); } } function TestComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵprojection(0, 2, null, TestComponent_Conditional_5_ProjectionFallback_0_Template, 1, 0); } } function TestComponent_ng_content_6_ProjectionFallback_0_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "h2"); $r3$.ɵɵtext(1, "With a structural directive"); $r3$.ɵɵelementEnd(); } } function TestComponent_ng_content_6_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵprojection(0, 3, ["*ngIf", "hasStructural"], TestComponent_ng_content_6_ProjectionFallback_0_Template, 2, 0); } } … $r3$.ɵɵdefineComponent({ … ngContentSelectors: $_c1$, decls: 7, vars: 2, consts: [[4, "ngIf"]], template: function TestComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵprojectionDef($_c0$); $r3$.ɵɵprojection(0, 0, null, TestComponent_ProjectionFallback_0_Template, 1, 0); $r3$.ɵɵelementStart(2, "div"); $r3$.ɵɵprojection(3, 1, null, TestComponent_ProjectionFallback_3_Template, 5, 1); $r3$.ɵɵelementEnd(); $r3$.ɵɵtemplate(5, TestComponent_Conditional_5_Template, 2, 0)(6, TestComponent_ng_content_6_Template, 2, 0, "ng-content", 0); } if (rf & 2) { $r3$.ɵɵadvance(5); $r3$.ɵɵconditional(ctx.hasFooter ? 5 : -1); $r3$.ɵɵadvance(); $r3$.ɵɵproperty("ngIf", ctx.hasStructural); } }, … })
{ "end_byte": 2256, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/ng_content_fallback.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/ng_project_as_selector.js_0_530
const $_c0$ = [[["", "title", ""]]]; const $_c1$ = ["[title]"]; // ... MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyApp, selectors: [["my-app"]], standalone: false, decls: 2, vars: 0, consts: [["ngProjectAs", "[title]", 5, ["", "title", ""]]], template: function MyApp_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "simple"); $r3$.ɵɵelement(1, "h1", 0); $r3$.ɵɵelementEnd(); } }, dependencies: [SimpleComponent], encapsulation: 2 })
{ "end_byte": 530, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/ng_project_as_selector.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/nested_template.ts_0_465
import {Component, NgModule} from '@angular/core'; @Component({ template: ` <div id="second" *ngIf="visible"> <ng-content SELECT="span[title=toFirst]"></ng-content> </div> <div id="third" *ngIf="visible"> No ng-content, no instructions generated. </div> <ng-template> '*' selector: <ng-content></ng-content> </ng-template> `, standalone: false }) class Cmp { } @NgModule({declarations: [Cmp]}) class Module { }
{ "end_byte": 465, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/nested_template.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/ng_content_with_structural_dir.ts_0_230
import {Component, Directive, NgModule, TemplateRef} from '@angular/core'; @Component({ selector: 'simple', template: '<ng-content *ngIf="showContent"></ng-content>', standalone: false }) export class SimpleComponent { }
{ "end_byte": 230, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/ng_content_with_structural_dir.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/project_as_ng_content.ts_0_716
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'card', template: ` <ng-content select="[card-title]"></ng-content> --- <ng-content select="[card-content]"></ng-content> `, standalone: false }) class Card { } @Component({ selector: 'card-with-title', template: ` <card> <h1 ngProjectAs="[card-title]">Title</h1> <ng-content ngProjectAs="[card-content]"></ng-content> </card> `, standalone: false }) class CardWithTitle { foo: any; } @Component({ selector: 'app', template: ` <card-with-title>content</card-with-title> `, standalone: false }) class App { } @NgModule({declarations: [Card, CardWithTitle, App]}) class Module { }
{ "end_byte": 716, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/project_as_ng_content.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/root_and_nested.ts_0_586
import {Component, NgModule} from '@angular/core'; @Component({ template: ` <ng-content select="[id=toMainBefore]"></ng-content> <ng-template> <ng-content select="[id=toTemplate]"></ng-content> <ng-template> <ng-content select="[id=toNestedTemplate]"></ng-content> </ng-template> </ng-template> <ng-template> '*' selector in a template: <ng-content></ng-content> </ng-template> <ng-content select="[id=toMainAfter]"></ng-content> `, standalone: false }) class Cmp { } @NgModule({declarations: [Cmp]}) class Module { }
{ "end_byte": 586, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/root_and_nested.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/module_optimization.js_0_55
Module.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
{ "end_byte": 55, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/module_optimization.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/pipe.ts_0_130
import {Pipe} from '@angular/core'; @Pipe({ name: 'stpipe', }) export class StandalonePipe { transform(value: any): any {} }
{ "end_byte": 130, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/pipe.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/component.ts_0_235
import {Component} from '@angular/core'; @Component({ selector: 'other-cmp', template: '', }) export class OtherCmp { } @Component({ template: '<other-cmp></other-cmp>', imports: [OtherCmp], }) export class StandaloneCmp { }
{ "end_byte": 235, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/component.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/directive.ts_0_88
import {Directive} from '@angular/core'; @Directive({}) export class StandaloneDir { }
{ "end_byte": 88, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/directive.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/GOLDEN_PARTIAL.js_0_7466
/**************************************************************************************************** * PARTIAL FILE: component.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class OtherCmp { } OtherCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: OtherCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); OtherCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: OtherCmp, isStandalone: true, selector: "other-cmp", ngImport: i0, template: '', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: OtherCmp, decorators: [{ type: Component, args: [{ selector: 'other-cmp', template: '', }] }] }); export class StandaloneCmp { } StandaloneCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); StandaloneCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: StandaloneCmp, isStandalone: true, selector: "ng-component", ngImport: i0, template: '<other-cmp></other-cmp>', isInline: true, dependencies: [{ kind: "component", type: OtherCmp, selector: "other-cmp" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneCmp, decorators: [{ type: Component, args: [{ template: '<other-cmp></other-cmp>', imports: [OtherCmp], }] }] }); /**************************************************************************************************** * PARTIAL FILE: component.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class OtherCmp { static ɵfac: i0.ɵɵFactoryDeclaration<OtherCmp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<OtherCmp, "other-cmp", never, {}, {}, never, never, true, never>; } export declare class StandaloneCmp { static ɵfac: i0.ɵɵFactoryDeclaration<StandaloneCmp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<StandaloneCmp, "ng-component", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: directive.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class StandaloneDir { } StandaloneDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); StandaloneDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: StandaloneDir, isStandalone: true, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneDir, decorators: [{ type: Directive, args: [{}] }] }); /**************************************************************************************************** * PARTIAL FILE: directive.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class StandaloneDir { static ɵfac: i0.ɵɵFactoryDeclaration<StandaloneDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<StandaloneDir, never, never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: pipe.js ****************************************************************************************************/ import { Pipe } from '@angular/core'; import * as i0 from "@angular/core"; export class StandalonePipe { transform(value) { } } StandalonePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandalonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); StandalonePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandalonePipe, isStandalone: true, name: "stpipe" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandalonePipe, decorators: [{ type: Pipe, args: [{ name: 'stpipe', }] }] }); /**************************************************************************************************** * PARTIAL FILE: pipe.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class StandalonePipe { transform(value: any): any; static ɵfac: i0.ɵɵFactoryDeclaration<StandalonePipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<StandalonePipe, "stpipe", true>; } /**************************************************************************************************** * PARTIAL FILE: imports.js ****************************************************************************************************/ import { Component, Directive, NgModule, Pipe } from '@angular/core'; import * as i0 from "@angular/core"; export class NotStandaloneDir { } NotStandaloneDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: NotStandaloneDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); NotStandaloneDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: NotStandaloneDir, isStandalone: false, selector: "[not-standalone]", ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: NotStandaloneDir, decorators: [{ type: Directive, args: [{ selector: '[not-standalone]', standalone: false }] }] }); export class NotStandalonePipe { transform(value) { } } NotStandalonePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: NotStandalonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); NotStandalonePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: NotStandalonePipe, isStandalone: false, name: "nspipe" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: NotStandalonePipe, decorators: [{ type: Pipe, args: [{ name: 'nspipe', standalone: false }] }] }); export class NotStandaloneStuffModule { } NotStandaloneStuffModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: NotStandaloneStuffModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); NotStandaloneStuffModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
{ "end_byte": 7466, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/GOLDEN_PARTIAL.js_7467_13932
0.0.0-PLACEHOLDER", ngImport: i0, type: NotStandaloneStuffModule, declarations: [NotStandaloneDir, NotStandalonePipe], exports: [NotStandaloneDir, NotStandalonePipe] }); NotStandaloneStuffModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: NotStandaloneStuffModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: NotStandaloneStuffModule, decorators: [{ type: NgModule, args: [{ declarations: [NotStandaloneDir, NotStandalonePipe], exports: [NotStandaloneDir, NotStandalonePipe], }] }] }); export class IndirectDir { } IndirectDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: IndirectDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); IndirectDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: IndirectDir, isStandalone: true, selector: "[indirect]", ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: IndirectDir, decorators: [{ type: Directive, args: [{ selector: '[indirect]', }] }] }); export class IndirectPipe { transform(value) { } } IndirectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: IndirectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); IndirectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: IndirectPipe, isStandalone: true, name: "indirectpipe" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: IndirectPipe, decorators: [{ type: Pipe, args: [{ name: 'indirectpipe', }] }] }); export class SomeModule { } SomeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); SomeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeModule, imports: [IndirectDir, IndirectPipe], exports: [NotStandaloneStuffModule, IndirectDir, IndirectPipe] }); SomeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeModule, imports: [NotStandaloneStuffModule] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeModule, decorators: [{ type: NgModule, args: [{ imports: [IndirectDir, IndirectPipe], exports: [NotStandaloneStuffModule, IndirectDir, IndirectPipe], }] }] }); export class DirectDir { } DirectDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); DirectDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: DirectDir, isStandalone: true, selector: "[direct]", ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectDir, decorators: [{ type: Directive, args: [{ selector: '[direct]', }] }] }); export class DirectPipe { transform(value) { } } DirectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); DirectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectPipe, isStandalone: true, name: "directpipe" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectPipe, decorators: [{ type: Pipe, args: [{ name: 'directpipe', }] }] }); export class TestCmp { constructor() { this.data = true; } } 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: true, selector: "test-cmp", ngImport: i0, template: ` <p>Reference some non-standalone things:<span not-standalone>{{data | nspipe}}</span></p> <p>Reference some indirect standalone things:<span indirect>{{data | indirectpipe}}</span></p> <p>Reference some standalone things directly:<span direct>{{data | directpipe}}</span></p> `, isInline: true, dependencies: [{ kind: "ngmodule", type: SomeModule }, { kind: "directive", type: NotStandaloneDir, selector: "[not-standalone]" }, { kind: "directive", type: IndirectDir, selector: "[indirect]" }, { kind: "pipe", type: NotStandalonePipe, name: "nspipe" }, { kind: "pipe", type: IndirectPipe, name: "indirectpipe" }, { kind: "directive", type: DirectDir, selector: "[direct]" }, { kind: "pipe", type: DirectPipe, name: "directpipe" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{ type: Component, args: [{ selector: 'test-cmp', template: ` <p>Reference some non-standalone things:<span not-standalone>{{data | nspipe}}</span></p> <p>Reference some indirect standalone things:<span indirect>{{data | indirectpipe}}</span></p> <p>Reference some standalone things directly:<span direct>{{data | directpipe}}</span></p> `, imports: [SomeModule, DirectDir, DirectPipe], }] }] }); /**************************************************************************************************** * PARTIAL FILE: imports.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class NotStandaloneDir { static ɵfac: i0.ɵɵFactoryDeclaration<NotStandaloneDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<NotStanda
{ "end_byte": 13932, "start_byte": 7467, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/GOLDEN_PARTIAL.js_13933_21423
oneDir, "[not-standalone]", never, {}, {}, never, never, false, never>; } export declare class NotStandalonePipe { transform(value: any): any; static ɵfac: i0.ɵɵFactoryDeclaration<NotStandalonePipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<NotStandalonePipe, "nspipe", false>; } export declare class NotStandaloneStuffModule { static ɵfac: i0.ɵɵFactoryDeclaration<NotStandaloneStuffModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<NotStandaloneStuffModule, [typeof NotStandaloneDir, typeof NotStandalonePipe], never, [typeof NotStandaloneDir, typeof NotStandalonePipe]>; static ɵinj: i0.ɵɵInjectorDeclaration<NotStandaloneStuffModule>; } export declare class IndirectDir { static ɵfac: i0.ɵɵFactoryDeclaration<IndirectDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<IndirectDir, "[indirect]", never, {}, {}, never, never, true, never>; } export declare class IndirectPipe { transform(value: any): any; static ɵfac: i0.ɵɵFactoryDeclaration<IndirectPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<IndirectPipe, "indirectpipe", true>; } export declare class SomeModule { static ɵfac: i0.ɵɵFactoryDeclaration<SomeModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<SomeModule, never, [typeof IndirectDir, typeof IndirectPipe], [typeof NotStandaloneStuffModule, typeof IndirectDir, typeof IndirectPipe]>; static ɵinj: i0.ɵɵInjectorDeclaration<SomeModule>; } export declare class DirectDir { static ɵfac: i0.ɵɵFactoryDeclaration<DirectDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<DirectDir, "[direct]", never, {}, {}, never, never, true, never>; } export declare class DirectPipe { transform(value: any): any; static ɵfac: i0.ɵɵFactoryDeclaration<DirectPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<DirectPipe, "directpipe", true>; } export declare class TestCmp { data: boolean; static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: recursive.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class RecursiveComponent { } RecursiveComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: RecursiveComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); RecursiveComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: RecursiveComponent, isStandalone: true, selector: "recursive-cmp", ngImport: i0, template: '<recursive-cmp></recursive-cmp>', isInline: true, dependencies: [{ kind: "component", type: RecursiveComponent, selector: "recursive-cmp" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: RecursiveComponent, decorators: [{ type: Component, args: [{ selector: 'recursive-cmp', // Simple recursion. Note: no `imports`. template: '<recursive-cmp></recursive-cmp>', }] }] }); /**************************************************************************************************** * PARTIAL FILE: recursive.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class RecursiveComponent { static ɵfac: i0.ɵɵFactoryDeclaration<RecursiveComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<RecursiveComponent, "recursive-cmp", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: module_optimization.js ****************************************************************************************************/ import { Component, Directive, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class StandaloneCmp { } StandaloneCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); StandaloneCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: StandaloneCmp, isStandalone: true, selector: "standalone-cmp", ngImport: i0, template: '', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneCmp, decorators: [{ type: Component, args: [{ selector: 'standalone-cmp', template: '', }] }] }); export class StandaloneDir { } StandaloneDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); StandaloneDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: StandaloneDir, isStandalone: true, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneDir, decorators: [{ type: Directive, args: [{}] }] }); export class Module { } Module.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); Module.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Module, imports: [StandaloneCmp, StandaloneDir] }); Module.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Module }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Module, decorators: [{ type: NgModule, args: [{ imports: [StandaloneCmp, StandaloneDir], }] }] }); /**************************************************************************************************** * PARTIAL FILE: module_optimization.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class StandaloneCmp { static ɵfac: i0.ɵɵFactoryDeclaration<StandaloneCmp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<StandaloneCmp, "standalone-cmp", never, {}, {}, never, never, true, never>; } export declare class StandaloneDir { static ɵfac: i0.ɵɵFactoryDeclaration<StandaloneDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<StandaloneDir, never, never, {}, {}, never, never, true, never>; } export declare class Module { static ɵfac: i0.ɵɵFactoryDeclaration<Module, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<Module, never, [typeof StandaloneCmp, typeof StandaloneDir], never>; static ɵinj: i0.ɵɵInjectorDeclaration<Module>; } /**************************************************************************************************** * PARTIAL FILE: forward_ref.js ****************************************************************************************************/ import { Component, forwardRef } from '@angular/cor
{ "end_byte": 21423, "start_byte": 13933, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/GOLDEN_PARTIAL.js_21425_24251
; import * as i0 from "@angular/core"; export 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: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestComponent, isStandalone: true, selector: "test", ngImport: i0, template: '<other-standalone></other-standalone>', isInline: true, dependencies: [{ kind: "component", type: i0.forwardRef(() => StandaloneComponent), selector: "other-standalone" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestComponent, decorators: [{ type: Component, args: [{ selector: 'test', imports: [forwardRef(() => StandaloneComponent)], template: '<other-standalone></other-standalone>', }] }] }); export class StandaloneComponent { } StandaloneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); StandaloneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: StandaloneComponent, isStandalone: true, selector: "other-standalone", ngImport: i0, template: '', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneComponent, decorators: [{ type: Component, args: [{ selector: 'other-standalone', template: '', }] }] }); /**************************************************************************************************** * PARTIAL FILE: forward_ref.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class TestComponent { static ɵfac: i0.ɵɵFactoryDeclaration<TestComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TestComponent, "test", never, {}, {}, never, never, true, never>; } export declare class StandaloneComponent { static ɵfac: i0.ɵɵFactoryDeclaration<StandaloneComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<StandaloneComponent, "other-standalone", never, {}, {}, never, never, true, never>; }
{ "end_byte": 24251, "start_byte": 21425, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/forward_ref.ts_0_328
import {Component, forwardRef} from '@angular/core'; @Component({ selector: 'test', imports: [forwardRef(() => StandaloneComponent)], template: '<other-standalone></other-standalone>', }) export class TestComponent { } @Component({ selector: 'other-standalone', template: '', }) export class StandaloneComponent { }
{ "end_byte": 328, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/forward_ref.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/component.js_0_312
StandaloneCmp.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StandaloneCmp, selectors: [["ng-component"]], decls: 1, vars: 0, template: function StandaloneCmp_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "other-cmp"); } }, dependencies: [OtherCmp], encapsulation: 2 });
{ "end_byte": 312, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/component.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/imports.ts_0_1382
import {Component, Directive, NgModule, Pipe} from '@angular/core'; @Directive({ selector: '[not-standalone]', standalone: false }) export class NotStandaloneDir { } @Pipe({ name: 'nspipe', standalone: false }) export class NotStandalonePipe { transform(value: any): any {} } @NgModule({ declarations: [NotStandaloneDir, NotStandalonePipe], exports: [NotStandaloneDir, NotStandalonePipe], }) export class NotStandaloneStuffModule { } @Directive({ selector: '[indirect]', }) export class IndirectDir { } @Pipe({ name: 'indirectpipe', }) export class IndirectPipe { transform(value: any): any {} } @NgModule({ imports: [IndirectDir, IndirectPipe], exports: [NotStandaloneStuffModule, IndirectDir, IndirectPipe], }) export class SomeModule { } @Directive({ selector: '[direct]', }) export class DirectDir { } @Pipe({ name: 'directpipe', }) export class DirectPipe { transform(value: any): any {} } @Component({ selector: 'test-cmp', template: ` <p>Reference some non-standalone things:<span not-standalone>{{data | nspipe}}</span></p> <p>Reference some indirect standalone things:<span indirect>{{data | indirectpipe}}</span></p> <p>Reference some standalone things directly:<span direct>{{data | directpipe}}</span></p> `, imports: [SomeModule, DirectDir, DirectPipe], }) export class TestCmp { data = true; }
{ "end_byte": 1382, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/imports.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/recursive.ts_0_213
import {Component} from '@angular/core'; @Component({ selector: 'recursive-cmp', // Simple recursion. Note: no `imports`. template: '<recursive-cmp></recursive-cmp>', }) export class RecursiveComponent { }
{ "end_byte": 213, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/recursive.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/module_optimization.ts_0_285
import {Component, Directive, NgModule} from '@angular/core'; @Component({ selector: 'standalone-cmp', template: '', }) export class StandaloneCmp { } @Directive({}) export class StandaloneDir { } @NgModule({ imports: [StandaloneCmp, StandaloneDir], }) export class Module { }
{ "end_byte": 285, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/module_optimization.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/pipe.js_0_116
StandalonePipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "stpipe", type: StandalonePipe, pure: true });
{ "end_byte": 116, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/pipe.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/forward_ref.js_0_337
TestComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TestComponent, selectors: [ ["test"] ], decls: 1, vars: 0, template: function TestComponent_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "other-standalone"); } }, dependencies: () => [StandaloneComponent], encapsulation: 2 });
{ "end_byte": 337, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/forward_ref.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/component.local.js_0_359
StandaloneCmp.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StandaloneCmp, selectors: [["ng-component"]], decls: 1, vars: 0, template: function StandaloneCmp_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "other-cmp"); } }, dependencies: i0.ɵɵgetComponentDepsFactory(StandaloneCmp, [OtherCmp]), encapsulation: 2 });
{ "end_byte": 359, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/component.local.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/directive.js_0_86
StandaloneDir.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: StandaloneDir });
{ "end_byte": 86, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/directive.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/local_reference_and_context_variables.ts_0_387
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: ` <div *ngFor="let item of items"> <div #foo></div> <span *ngIf="showing"> {{ foo }} - {{ item }} </span> </div>`, standalone: false }) export class MyComponent { } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 387, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/local_reference_and_context_variables.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/local_reference.js_0_524
// ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors: [["my-component"]], standalone: false, decls: 3, vars: 1, consts: [["user", ""]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelement(0, "input", null, 0); $r3$.ɵɵtext(2); } if (rf & 2) { const $user$ = $r3$.ɵɵreference(1); $r3$.ɵɵadvance(2); $r3$.ɵɵtextInterpolate1("Hello ", $user$.value, "!"); } }, encapsulation: 2 });
{ "end_byte": 524, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/local_reference.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/GOLDEN_PARTIAL.js_0_7321
/**************************************************************************************************** * PARTIAL FILE: local_reference.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "my-component", ngImport: i0, template: '<input #user>Hello {{user.value}}!', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: '<input #user>Hello {{user.value}}!', standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: local_reference.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: local_reference_nested.js ****************************************************************************************************/ import { Component, Directive, NgModule, TemplateRef } from '@angular/core'; import * as i0 from "@angular/core"; export class IfDirective { constructor(template) { } } IfDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: IfDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); IfDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: IfDirective, isStandalone: false, selector: "[if]", ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: IfDirective, decorators: [{ type: Directive, args: [{ selector: '[if]', standalone: false }] }], ctorParameters: () => [{ type: i0.TemplateRef }] }); export class MyComponent { } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "my-component", ngImport: i0, template: ` <div #foo></div> {{foo}} <div *if> {{foo}}-{{bar}} <span *if>{{foo}}-{{bar}}-{{baz}}</span> <span #bar></span> </div> <div #baz></div> `, isInline: true, dependencies: [{ kind: "directive", type: IfDirective, selector: "[if]" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: ` <div #foo></div> {{foo}} <div *if> {{foo}}-{{bar}} <span *if>{{foo}}-{{bar}}-{{baz}}</span> <span #bar></span> </div> <div #baz></div> `, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [IfDirective, MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [IfDirective, MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: local_reference_nested.d.ts ****************************************************************************************************/ import { TemplateRef } from '@angular/core'; import * as i0 from "@angular/core"; export declare class IfDirective { constructor(template: TemplateRef<any>); static ɵfac: i0.ɵɵFactoryDeclaration<IfDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<IfDirective, "[if]", never, {}, {}, never, never, false, never>; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof IfDirective, typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: local_reference_and_context_variables.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER",
{ "end_byte": 7321, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/GOLDEN_PARTIAL.js_7322_14880
type: MyComponent, isStandalone: false, selector: "my-component", ngImport: i0, template: ` <div *ngFor="let item of items"> <div #foo></div> <span *ngIf="showing"> {{ foo }} - {{ item }} </span> </div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: ` <div *ngFor="let item of items"> <div #foo></div> <span *ngIf="showing"> {{ foo }} - {{ item }} </span> </div>`, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: local_reference_and_context_variables.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: lifecycle_hooks.js ****************************************************************************************************/ import { Component, Input, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; let events = []; export class LifecycleComp { ngOnChanges() { events.push('changes' + this.nameMin); } ngOnInit() { events.push('init' + this.nameMin); } ngDoCheck() { events.push('check' + this.nameMin); } ngAfterContentInit() { events.push('content init' + this.nameMin); } ngAfterContentChecked() { events.push('content check' + this.nameMin); } ngAfterViewInit() { events.push('view init' + this.nameMin); } ngAfterViewChecked() { events.push('view check' + this.nameMin); } ngOnDestroy() { events.push(this.nameMin); } } LifecycleComp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: LifecycleComp, deps: [], target: i0.ɵɵFactoryTarget.Component }); LifecycleComp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: LifecycleComp, isStandalone: false, selector: "lifecycle-comp", inputs: { nameMin: ["name", "nameMin"] }, usesOnChanges: true, ngImport: i0, template: '', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: LifecycleComp, decorators: [{ type: Component, args: [{ selector: 'lifecycle-comp', template: '', standalone: false }] }], propDecorators: { nameMin: [{ type: Input, args: ['name'] }] } }); export class SimpleLayout { constructor() { this.name1 = '1'; this.name2 = '2'; } } SimpleLayout.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SimpleLayout, deps: [], target: i0.ɵɵFactoryTarget.Component }); SimpleLayout.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SimpleLayout, isStandalone: false, selector: "simple-layout", ngImport: i0, template: ` <lifecycle-comp [name]="name1"></lifecycle-comp> <lifecycle-comp [name]="name2"></lifecycle-comp> `, isInline: true, dependencies: [{ kind: "component", type: LifecycleComp, selector: "lifecycle-comp", inputs: ["name"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SimpleLayout, decorators: [{ type: Component, args: [{ selector: 'simple-layout', template: ` <lifecycle-comp [name]="name1"></lifecycle-comp> <lifecycle-comp [name]="name2"></lifecycle-comp> `, standalone: false }] }] }); export class LifecycleModule { } LifecycleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: LifecycleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); LifecycleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: LifecycleModule, declarations: [LifecycleComp, SimpleLayout] }); LifecycleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: LifecycleModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: LifecycleModule, decorators: [{ type: NgModule, args: [{ declarations: [LifecycleComp, SimpleLayout] }] }] }); /**************************************************************************************************** * PARTIAL FILE: lifecycle_hooks.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class LifecycleComp { nameMin: string; ngOnChanges(): void; ngOnInit(): void; ngDoCheck(): void; ngAfterContentInit(): void; ngAfterContentChecked(): void; ngAfterViewInit(): void; ngAfterViewChecked(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<LifecycleComp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<LifecycleComp, "lifecycle-comp", never, { "nameMin": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>; } export declare class SimpleLayout { name1: string; name2: string; static ɵfac: i0.ɵɵFactoryDeclaration<SimpleLayout, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SimpleLayout, "simple-layout", never, {}, {}, never, never, false, never>; } export declare class LifecycleModule { static ɵfac: i0.ɵɵFactoryDeclaration<LifecycleModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<LifecycleModule, [typeof LifecycleComp, typeof SimpleLayout], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<LifecycleModule>; }
{ "end_byte": 14880, "start_byte": 7322, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/lifecycle_hooks_lifecycle_comp_def.js_0_334
LifecycleComp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: LifecycleComp, selectors: [["lifecycle-comp"]], inputs: {nameMin: [0, "name", "nameMin"]}, standalone: false, features: [$r3$.ɵɵNgOnChangesFeature], decls: 0, vars: 0, template: function LifecycleComp_Template(rf, ctx) {}, encapsulation: 2 });
{ "end_byte": 334, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/lifecycle_hooks_lifecycle_comp_def.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/local_reference.ts_0_265
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: '<input #user>Hello {{user.value}}!', standalone: false }) export class MyComponent { } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 265, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/local_reference.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/lifecycle_hooks.ts_0_1132
import {Component, Input, NgModule} from '@angular/core'; let events: string[] = []; @Component({ selector: 'lifecycle-comp', template: '', standalone: false }) export class LifecycleComp { @Input('name') nameMin!: string; ngOnChanges() { events.push('changes' + this.nameMin); } ngOnInit() { events.push('init' + this.nameMin); } ngDoCheck() { events.push('check' + this.nameMin); } ngAfterContentInit() { events.push('content init' + this.nameMin); } ngAfterContentChecked() { events.push('content check' + this.nameMin); } ngAfterViewInit() { events.push('view init' + this.nameMin); } ngAfterViewChecked() { events.push('view check' + this.nameMin); } ngOnDestroy() { events.push(this.nameMin); } } @Component({ selector: 'simple-layout', template: ` <lifecycle-comp [name]="name1"></lifecycle-comp> <lifecycle-comp [name]="name2"></lifecycle-comp> `, standalone: false }) export class SimpleLayout { name1 = '1'; name2 = '2'; } @NgModule({declarations: [LifecycleComp, SimpleLayout]}) export class LifecycleModule { }
{ "end_byte": 1132, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/lifecycle_hooks.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/lifecycle_hooks_simple_layout_def.js_0_564
SimpleLayout.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: SimpleLayout, selectors: [["simple-layout"]], standalone: false, decls: 2, vars: 2, consts: [[__AttributeMarker.Bindings__, "name"]], template: function SimpleLayout_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelement(0, "lifecycle-comp", 0)(1, "lifecycle-comp", 0); } if (rf & 2) { $r3$.ɵɵproperty("name", ctx.name1); $r3$.ɵɵadvance(); $r3$.ɵɵproperty("name", ctx.name2); } }, dependencies: [LifecycleComp], encapsulation: 2 });
{ "end_byte": 564, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/lifecycle_hooks_simple_layout_def.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/local_reference_nested.pipeline.js_0_1604
function MyComponent_div_3_span_2_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "span"); $r3$.ɵɵtext(1); $r3$.ɵɵelementEnd(); } if (rf & 2) { $r3$.ɵɵnextContext(); const $bar$ = $r3$.ɵɵreference(4); $r3$.ɵɵnextContext(); const $foo$ = $r3$.ɵɵreference(1); const $baz$ = $r3$.ɵɵreference(5); $r3$.ɵɵadvance(); $r3$.ɵɵtextInterpolate3("", $foo$, "-", $bar$, "-", $baz$, ""); } } function MyComponent_div_3_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "div"); $r3$.ɵɵtext(1); $r3$.ɵɵtemplate(2, MyComponent_div_3_span_2_Template, 2, 3, "span", 3); $r3$.ɵɵelement(3, "span", null, 2); $r3$.ɵɵelementEnd(); } if (rf & 2) { const $bar$ = $r3$.ɵɵreference(4); $r3$.ɵɵnextContext(); const $foo$ = $r3$.ɵɵreference(1); $r3$.ɵɵadvance(); $r3$.ɵɵtextInterpolate2(" ", $foo$, "-", $bar$, " "); } } // ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors: [["my-component"]], standalone: false, decls: 6, vars: 1, consts: [["foo", ""], ["baz", ""], ["bar", ""], [__AttributeMarker.Template__, "if"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelement(0, "div", null, 0); $r3$.ɵɵtext(2); $r3$.ɵɵtemplate(3, MyComponent_div_3_Template, 5, 2, "div", 3); $r3$.ɵɵelement(4, "div", null, 1); } if (rf & 2) { const $foo$ = $r3$.ɵɵreference(1); $r3$.ɵɵadvance(2); $r3$.ɵɵtextInterpolate1(" ", $foo$, " "); } }, dependencies:[IfDirective], encapsulation: 2 });
{ "end_byte": 1604, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/local_reference_nested.pipeline.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/local_reference_nested.ts_0_585
import {Component, Directive, NgModule, TemplateRef} from '@angular/core'; @Directive({ selector: '[if]', standalone: false }) export class IfDirective { constructor(template: TemplateRef<any>) {} } @Component({ selector: 'my-component', template: ` <div #foo></div> {{foo}} <div *if> {{foo}}-{{bar}} <span *if>{{foo}}-{{bar}}-{{baz}}</span> <span #bar></span> </div> <div #baz></div> `, standalone: false }) export class MyComponent { } @NgModule({declarations: [IfDirective, MyComponent]}) export class MyModule { }
{ "end_byte": 585, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/local_reference_nested.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/local_reference_and_context_variables_template.pipeline.js_0_1065
function MyComponent_div_0_span_3_Template(rf, ctx) { if (rf & 1) { $i0$.ɵɵelementStart(0, "span"); $i0$.ɵɵtext(1); $i0$.ɵɵelementEnd(); } if (rf & 2) { const $item$ = $i0$.ɵɵnextContext().$implicit; const $foo$ = $i0$.ɵɵreference(2); $r3$.ɵɵadvance(); $i0$.ɵɵtextInterpolate2(" ", $foo$, " - ", $item$, " "); } } function MyComponent_div_0_Template(rf, ctx) { if (rf & 1) { $i0$.ɵɵelementStart(0, "div"); $i0$.ɵɵelement(1, "div", null, 0); $i0$.ɵɵtemplate(3, MyComponent_div_0_span_3_Template, 2, 2, "span", 2); $i0$.ɵɵelementEnd(); } if (rf & 2) { const $app$ = $i0$.ɵɵnextContext(); $r3$.ɵɵadvance(3); $i0$.ɵɵproperty("ngIf", $app$.showing); } } // ... consts: [["foo", ""], [__AttributeMarker.Template__, "ngFor", "ngForOf"], [__AttributeMarker.Template__, "ngIf"]], template:function MyComponent_Template(rf, ctx){ if (rf & 1) { $i0$.ɵɵtemplate(0, MyComponent_div_0_Template, 4, 1, "div", 1); } if (rf & 2) { $i0$.ɵɵproperty("ngForOf", ctx.items); } }
{ "end_byte": 1065, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/local_reference_and_context_variables_template.pipeline.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/parent_template_variable.ts_0_664
import {Component, NgModule} from '@angular/core'; import {ForOfDirective} from './for_of'; @Component({ selector: 'my-component', template: ` <ul> <li *for="let item of items"> <div>{{item.name}}</div> <ul> <li *for="let info of item.infos"> {{item.name}}: {{info.description}} </li> </ul> </li> </ul>`, standalone: false }) export class MyComponent { items = [ {name: 'one', infos: [{description: '11'}, {description: '12'}]}, {name: 'two', infos: [{description: '21'}, {description: '22'}]} ]; } @NgModule({declarations: [MyComponent, ForOfDirective]}) export class MyModule { }
{ "end_byte": 664, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/parent_template_variable.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/let_variable_and_reference.js_0_878
function MyComponent_li_1_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "li"); $r3$.ɵɵtext(1); $r3$.ɵɵelementEnd(); } if (rf & 2) { const $item$ = ctx.$implicit; $r3$.ɵɵadvance(); $r3$.ɵɵtextInterpolate($item$.name); } } // ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors: [["my-component"]], standalone: false, decls: 2, vars: 1, consts: [[__AttributeMarker.Template__, "for", "forOf"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "ul"); $r3$.ɵɵtemplate(1, MyComponent_li_1_Template, 2, 1, "li", 0); $r3$.ɵɵelementEnd(); } if (rf & 2) { $r3$.ɵɵadvance(); $r3$.ɵɵproperty("forOf", ctx.items); } }, dependencies: () => [ForOfDirective], encapsulation: 2 });
{ "end_byte": 878, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/let_variable_and_reference.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/GOLDEN_PARTIAL.js_0_7820
/**************************************************************************************************** * PARTIAL FILE: for_of.js ****************************************************************************************************/ import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core'; import * as i0 from "@angular/core"; export class ForOfDirective { constructor(view, template) { this.view = view; this.template = template; } ngOnChanges(simpleChanges) { } } ForOfDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ForOfDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); ForOfDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ForOfDirective, isStandalone: false, selector: "[forOf]", inputs: { forOf: "forOf" }, usesOnChanges: true, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ForOfDirective, decorators: [{ type: Directive, args: [{ selector: '[forOf]', standalone: false }] }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }], propDecorators: { forOf: [{ type: Input }] } }); /**************************************************************************************************** * PARTIAL FILE: for_of.d.ts ****************************************************************************************************/ import { SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core'; import * as i0 from "@angular/core"; export interface ForOfContext { $implicit: any; index: number; even: boolean; odd: boolean; } export declare class ForOfDirective { private view; private template; private previous; constructor(view: ViewContainerRef, template: TemplateRef<any>); forOf: any[]; ngOnChanges(simpleChanges: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration<ForOfDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ForOfDirective, "[forOf]", never, { "forOf": { "alias": "forOf"; "required": false; }; }, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: svg_embedded_view.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import { ForOfDirective } from './for_of'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.items = [{ data: 42 }, { data: 42 }]; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "my-component", ngImport: i0, template: `<svg><g *for="let item of items"><circle></circle></g></svg>`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => ForOfDirective), selector: "[forOf]", inputs: ["forOf"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: `<svg><g *for="let item of items"><circle></circle></g></svg>`, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent, ForOfDirective] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent, ForOfDirective] }] }] }); /**************************************************************************************************** * PARTIAL FILE: svg_embedded_view.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; import * as i1 from "./for_of"; export declare class MyComponent { items: { data: number; }[]; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent, typeof i1.ForOfDirective], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: for_of.js ****************************************************************************************************/ import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core'; import * as i0 from "@angular/core"; export class ForOfDirective { constructor(view, template) { this.view = view; this.template = template; } ngOnChanges(simpleChanges) { } } ForOfDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ForOfDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); ForOfDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ForOfDirective, isStandalone: false, selector: "[forOf]", inputs: { forOf: "forOf" }, usesOnChanges: true, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ForOfDirective, decorators: [{ type: Directive, args: [{ selector: '[forOf]', standalone: false }] }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }], propDecorators: { forOf: [{ type: Input }] } }); /**************************************************************************************************** * PARTIAL FILE: for_of.d.ts ****************************************************************************************************/ import { SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core'; import * as i0 from "@angular/core"; export interface ForOfContext { $implicit: any; index: number; even: boolean; odd: boolean; } export declare class ForOfDirective { private view; private template; private previous; constructor(view: ViewContainerRef, template: TemplateRef<any>); forOf: any[]; ngOnChanges(simpleChanges: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration<ForOfDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ForOfDirective, "[forOf]", never, { "forOf": { "alias": "forOf"; "required": false; }; }, {}, never, never, false, never>; } /*********************************************************
{ "end_byte": 7820, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/GOLDEN_PARTIAL.js_7821_13928
****************************************** * PARTIAL FILE: let_variable_and_reference.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import { ForOfDirective } from './for_of'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.items = [{ name: 'one' }, { name: 'two' }]; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "my-component", ngImport: i0, template: `<ul><li *for="let item of items">{{item.name}}</li></ul>`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => ForOfDirective), selector: "[forOf]", inputs: ["forOf"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: `<ul><li *for="let item of items">{{item.name}}</li></ul>`, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent, ForOfDirective] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent, ForOfDirective] }] }] }); /**************************************************************************************************** * PARTIAL FILE: let_variable_and_reference.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; import * as i1 from "./for_of"; export declare class MyComponent { items: { name: string; }[]; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent, typeof i1.ForOfDirective], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: for_of.js ****************************************************************************************************/ import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core'; import * as i0 from "@angular/core"; export class ForOfDirective { constructor(view, template) { this.view = view; this.template = template; } ngOnChanges(simpleChanges) { } } ForOfDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ForOfDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); ForOfDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ForOfDirective, isStandalone: false, selector: "[forOf]", inputs: { forOf: "forOf" }, usesOnChanges: true, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ForOfDirective, decorators: [{ type: Directive, args: [{ selector: '[forOf]', standalone: false }] }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }], propDecorators: { forOf: [{ type: Input }] } }); /**************************************************************************************************** * PARTIAL FILE: for_of.d.ts ****************************************************************************************************/ import { SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core'; import * as i0 from "@angular/core"; export interface ForOfContext { $implicit: any; index: number; even: boolean; odd: boolean; } export declare class ForOfDirective { private view; private template; private previous; constructor(view: ViewContainerRef, template: TemplateRef<any>); forOf: any[]; ngOnChanges(simpleChanges: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration<ForOfDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ForOfDirective, "[forOf]", never, { "forOf": { "alias": "forOf"; "required": false; }; }, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: parent_template_variable.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import { ForOfDirective } from './for_of'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.items = [ { name: 'one', infos: [{ description: '11' }, { description: '12' }] }, { name: 'two', infos: [{ description: '21' }, { description: '22' }] } ]; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyCompon
{ "end_byte": 13928, "start_byte": 7821, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/GOLDEN_PARTIAL.js_13929_19269
nt, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "my-component", ngImport: i0, template: ` <ul> <li *for="let item of items"> <div>{{item.name}}</div> <ul> <li *for="let info of item.infos"> {{item.name}}: {{info.description}} </li> </ul> </li> </ul>`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => ForOfDirective), selector: "[forOf]", inputs: ["forOf"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: ` <ul> <li *for="let item of items"> <div>{{item.name}}</div> <ul> <li *for="let info of item.infos"> {{item.name}}: {{info.description}} </li> </ul> </li> </ul>`, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent, ForOfDirective] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent, ForOfDirective] }] }] }); /**************************************************************************************************** * PARTIAL FILE: parent_template_variable.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; import * as i1 from "./for_of"; export declare class MyComponent { items: { name: string; infos: { description: string; }[]; }[]; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent, typeof i1.ForOfDirective], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: for_of.js ****************************************************************************************************/ import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core'; import * as i0 from "@angular/core"; export class ForOfDirective { constructor(view, template) { this.view = view; this.template = template; } ngOnChanges(simpleChanges) { } } ForOfDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ForOfDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); ForOfDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ForOfDirective, isStandalone: false, selector: "[forOf]", inputs: { forOf: "forOf" }, usesOnChanges: true, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ForOfDirective, decorators: [{ type: Directive, args: [{ selector: '[forOf]', standalone: false }] }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }], propDecorators: { forOf: [{ type: Input }] } }); /**************************************************************************************************** * PARTIAL FILE: for_of.d.ts ****************************************************************************************************/ import { SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core'; import * as i0 from "@angular/core"; export interface ForOfContext { $implicit: any; index: number; even: boolean; odd: boolean; } export declare class ForOfDirective { private view; private template; private previous; constructor(view: ViewContainerRef, template: TemplateRef<any>); forOf: any[]; ngOnChanges(simpleChanges: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration<ForOfDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ForOfDirective, "[forOf]", never, { "forOf": { "alias": "forOf"; "required": false; }; }, {}, never, never, false, never>; }
{ "end_byte": 19269, "start_byte": 13929, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/svg_embedded_view.ts_0_388
import {Component, NgModule} from '@angular/core'; import {ForOfDirective} from './for_of'; @Component({ selector: 'my-component', template: `<svg><g *for="let item of items"><circle></circle></g></svg>`, standalone: false }) export class MyComponent { items = [{data: 42}, {data: 42}]; } @NgModule({declarations: [MyComponent, ForOfDirective]}) export class MyModule { }
{ "end_byte": 388, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/svg_embedded_view.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/for_of_fac.js_0_217
ForOfDirective.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ type: ForOfDirective, selectors: [["", "forOf", ""]], inputs: {forOf: "forOf"}, standalone: false, features: [$r3$.ɵɵNgOnChangesFeature] });
{ "end_byte": 217, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/for_of_fac.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/for_of_def.js_0_224
ForOfDirective.ɵfac = function ForOfDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ForOfDirective)($r3$.ɵɵdirectiveInject($r3$.ViewContainerRef), $r3$.ɵɵdirectiveInject($r3$.TemplateRef)); };
{ "end_byte": 224, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/for_of_def.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/parent_template_variable.js_0_1467
function MyComponent_li_1_li_4_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "li"); $r3$.ɵɵtext(1); $r3$.ɵɵelementEnd(); } if (rf & 2) { const $info$ = ctx.$implicit; const $item$ = $r3$.ɵɵnextContext().$implicit; $r3$.ɵɵadvance(); $r3$.ɵɵtextInterpolate2(" ", $item$.name, ": ", $info$.description, " "); } } function MyComponent_li_1_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "li")(1, "div"); $r3$.ɵɵtext(2); $r3$.ɵɵelementEnd(); $r3$.ɵɵelementStart(3, "ul"); $r3$.ɵɵtemplate(4, MyComponent_li_1_li_4_Template, 2, 2, "li", 0); $r3$.ɵɵelementEnd()(); } if (rf & 2) { const $item$ = ctx.$implicit; $r3$.ɵɵadvance(2); $r3$.ɵɵtextInterpolate(IDENT.name); $r3$.ɵɵadvance(2); $r3$.ɵɵproperty("forOf", IDENT.infos); } } // ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors: [["my-component"]], standalone: false, decls: 2, vars: 1, consts: [[__AttributeMarker.Template__, "for", "forOf"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "ul"); $r3$.ɵɵtemplate(1, MyComponent_li_1_Template, 5, 2, "li", 0); $r3$.ɵɵelementEnd(); } if (rf & 2) { $r3$.ɵɵadvance(); $r3$.ɵɵproperty("forOf", ctx.items); } }, dependencies: () => [ForOfDirective], encapsulation: 2 });
{ "end_byte": 1467, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/parent_template_variable.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/for_of.ts_0_482
import {Directive, Input, SimpleChanges, TemplateRef, ViewContainerRef} from '@angular/core'; export interface ForOfContext { $implicit: any; index: number; even: boolean; odd: boolean; } @Directive({ selector: '[forOf]', standalone: false }) export class ForOfDirective { private previous!: any[]; constructor(private view: ViewContainerRef, private template: TemplateRef<any>) {} @Input() forOf!: any[]; ngOnChanges(simpleChanges: SimpleChanges) {} }
{ "end_byte": 482, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/for_of.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/svg_embedded_view.js_0_833
function MyComponent__svg_g_1_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵnamespaceSVG(); $r3$.ɵɵelementStart(0,"g"); $r3$.ɵɵelement(1,"circle"); $r3$.ɵɵelementEnd(); } } // ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors: [["my-component"]], standalone: false, decls: 2, vars: 1, consts: [[__AttributeMarker.Template__, "for", "forOf"]], template: function MyComponent_Template(rf, ctx){ if (rf & 1) { $r3$.ɵɵnamespaceSVG(); $r3$.ɵɵelementStart(0,"svg"); $r3$.ɵɵtemplate(1, MyComponent__svg_g_1_Template, 2, 0, "g", 0); $r3$.ɵɵelementEnd(); } if (rf & 2) { $r3$.ɵɵadvance(); $r3$.ɵɵproperty("forOf", ctx.items); } }, dependencies: () => [ForOfDirective], encapsulation: 2 });
{ "end_byte": 833, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/svg_embedded_view.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/let_variable_and_reference.ts_0_390
import {Component, NgModule} from '@angular/core'; import {ForOfDirective} from './for_of'; @Component({ selector: 'my-component', template: `<ul><li *for="let item of items">{{item.name}}</li></ul>`, standalone: false }) export class MyComponent { items = [{name: 'one'}, {name: 'two'}]; } @NgModule({declarations: [MyComponent, ForOfDirective]}) export class MyModule { }
{ "end_byte": 390, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/let_variable_and_reference.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/signals/component.ts_0_297
import {Component} from '@angular/core'; @Component({ // @ts-ignore signals: true, selector: 'other-cmp', template: '', }) export class OtherCmp { } @Component({ // @ts-ignore signals: true, template: '<other-cmp></other-cmp>', imports: [OtherCmp], }) export class SignalCmp { }
{ "end_byte": 297, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/signals/component.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/signals/directive.ts_0_144
import {Directive} from '@angular/core'; @Directive({ // @ts-ignore signals: true, standalone: false }) export class SignalDir { }
{ "end_byte": 144, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/signals/directive.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/signals/GOLDEN_PARTIAL.js_0_4220
/**************************************************************************************************** * PARTIAL FILE: component.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class OtherCmp { } OtherCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: OtherCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); OtherCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: OtherCmp, isStandalone: true, isSignal: true, selector: "other-cmp", ngImport: i0, template: '', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: OtherCmp, decorators: [{ type: Component, args: [{ // @ts-ignore signals: true, selector: 'other-cmp', template: '', }] }] }); export class SignalCmp { } SignalCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SignalCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); SignalCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SignalCmp, isStandalone: true, isSignal: true, selector: "ng-component", ngImport: i0, template: '<other-cmp></other-cmp>', isInline: true, dependencies: [{ kind: "component", type: OtherCmp, selector: "other-cmp" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SignalCmp, decorators: [{ type: Component, args: [{ // @ts-ignore signals: true, template: '<other-cmp></other-cmp>', imports: [OtherCmp], }] }] }); /**************************************************************************************************** * PARTIAL FILE: component.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class OtherCmp { static ɵfac: i0.ɵɵFactoryDeclaration<OtherCmp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<OtherCmp, "other-cmp", never, {}, {}, never, never, true, never, true>; } export declare class SignalCmp { static ɵfac: i0.ɵɵFactoryDeclaration<SignalCmp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SignalCmp, "ng-component", never, {}, {}, never, never, true, never, true>; } /**************************************************************************************************** * PARTIAL FILE: directive.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class SignalDir { } SignalDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SignalDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); SignalDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SignalDir, isStandalone: false, isSignal: true, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SignalDir, decorators: [{ type: Directive, args: [{ // @ts-ignore signals: true, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: directive.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class SignalDir { static ɵfac: i0.ɵɵFactoryDeclaration<SignalDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SignalDir, never, never, {}, {}, never, never, false, never, true>; }
{ "end_byte": 4220, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/signals/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/signals/component.js_0_317
SignalCmp.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignalCmp, selectors: [["ng-component"]], signals: true, decls: 1, vars: 0, template: function SignalCmp_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "other-cmp"); } }, dependencies: [OtherCmp], encapsulation: 2 });
{ "end_byte": 317, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/signals/component.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/signals/directive.js_0_116
SignalDir.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SignalDir, standalone: false, signals: true });
{ "end_byte": 116, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/signals/directive.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_forward_ref.js_0_1010
ContentQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: ContentQueryComponent, selectors: [["content-query-component"]], contentQueries: function ContentQueryComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) { $r3$.ɵɵcontentQuery(dirIndex, SomeDirective, __QueryFlags.descendants__|__QueryFlags.emitDistinctChangesOnly__); $r3$.ɵɵcontentQuery(dirIndex, SomeDirective, __QueryFlags.emitDistinctChangesOnly__); } if (rf & 2) { let $tmp$; $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDir = $tmp$.first); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDirList = $tmp$); } }, standalone: false, ngContentSelectors: _c0, decls: 2, vars: 0, template: function ContentQueryComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵprojectionDef(); $r3$.ɵɵelementStart(0, "div"); $r3$.ɵɵprojection(1); $r3$.ɵɵelementEnd(); } }, encapsulation: 2 });
{ "end_byte": 1010, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_forward_ref.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/some.directive.ts_0_138
import {Directive} from '@angular/core'; @Directive({ selector: '[someDir]', standalone: false }) export class SomeDirective { }
{ "end_byte": 138, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/some.directive.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/static_view_query.ts_0_478
import {Component, ElementRef, NgModule, ViewChild} from '@angular/core'; import {SomeDirective} from './some.directive'; @Component({ selector: 'view-query-component', template: ` <div someDir></div> `, standalone: false }) export class ViewQueryComponent { @ViewChild(SomeDirective, {static: true}) someDir!: SomeDirective; @ViewChild('foo') foo!: ElementRef; } @NgModule({declarations: [SomeDirective, ViewQueryComponent]}) export class MyModule { }
{ "end_byte": 478, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/static_view_query.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_for_directive.ts_0_746
import {Component, ContentChild, ContentChildren, NgModule, QueryList} from '@angular/core'; import {SomeDirective} from './some.directive'; @Component({ selector: 'content-query-component', template: ` <div><ng-content></ng-content></div> `, standalone: false }) export class ContentQueryComponent { @ContentChild(SomeDirective) someDir!: SomeDirective; @ContentChildren(SomeDirective) someDirList!: QueryList<SomeDirective>; } @Component({ selector: 'my-app', template: ` <content-query-component> <div someDir></div> </content-query-component> `, standalone: false }) export class MyApp { } @NgModule({declarations: [SomeDirective, ContentQueryComponent, MyApp]}) export class MyModule { }
{ "end_byte": 746, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_for_directive.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_for_local_ref.ts_0_464
import {Component, ContentChild, ContentChildren, NgModule, QueryList} from '@angular/core'; @Component({ selector: 'content-query-component', template: ` <div #myRef></div> <div #myRef1></div> `, standalone: false }) export class ContentQueryComponent { @ContentChild('myRef') myRef: any; @ContentChildren('myRef1, myRef2, myRef3') myRefs!: QueryList<any>; } @NgModule({declarations: [ContentQueryComponent]}) export class MyModule { }
{ "end_byte": 464, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_for_local_ref.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_for_local_ref.ts_0_444
import {Component, NgModule, QueryList, ViewChild, ViewChildren} from '@angular/core'; @Component({ selector: 'view-query-component', template: ` <div #myRef></div> <div #myRef1></div> `, standalone: false }) export class ViewQueryComponent { @ViewChild('myRef') myRef: any; @ViewChildren('myRef1, myRef2, myRef3') myRefs!: QueryList<any>; } @NgModule({declarations: [ViewQueryComponent]}) export class MyModule { }
{ "end_byte": 444, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_for_local_ref.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js_0_7907
/**************************************************************************************************** * PARTIAL FILE: some.directive.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class SomeDirective { } SomeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SomeDirective, isStandalone: false, selector: "[someDir]", ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ selector: '[someDir]', standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: some.directive.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDeclaration<SomeDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SomeDirective, "[someDir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: view_query_for_directive.js ****************************************************************************************************/ import { Component, NgModule, QueryList, ViewChild, ViewChildren } from '@angular/core'; import { SomeDirective } from './some.directive'; import * as i0 from "@angular/core"; export class ViewQueryComponent { } ViewQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ViewQueryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); ViewQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ViewQueryComponent, isStandalone: false, selector: "view-query-component", viewQueries: [{ propertyName: "someDir", first: true, predicate: SomeDirective, descendants: true }, { propertyName: "someDirs", predicate: SomeDirective, descendants: true }], ngImport: i0, template: ` <div someDir></div> `, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => SomeDirective), selector: "[someDir]" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ViewQueryComponent, decorators: [{ type: Component, args: [{ selector: 'view-query-component', template: ` <div someDir></div> `, standalone: false }] }], propDecorators: { someDir: [{ type: ViewChild, args: [SomeDirective] }], someDirs: [{ type: ViewChildren, args: [SomeDirective] }] } }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [SomeDirective, ViewQueryComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [SomeDirective, ViewQueryComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: view_query_for_directive.d.ts ****************************************************************************************************/ import { QueryList } from '@angular/core'; import { SomeDirective } from './some.directive'; import * as i0 from "@angular/core"; import * as i1 from "./some.directive"; export declare class ViewQueryComponent { someDir: SomeDirective; someDirs: QueryList<SomeDirective>; static ɵfac: i0.ɵɵFactoryDeclaration<ViewQueryComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ViewQueryComponent, "view-query-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof i1.SomeDirective, typeof ViewQueryComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: view_query_forward_ref.js ****************************************************************************************************/ import { Component, Directive, forwardRef, NgModule, QueryList, ViewChild, ViewChildren } from '@angular/core'; import * as i0 from "@angular/core"; export class ViewQueryComponent { } ViewQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ViewQueryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); ViewQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ViewQueryComponent, isStandalone: false, selector: "view-query-component", viewQueries: [{ propertyName: "someDir", first: true, predicate: i0.forwardRef(() => SomeDirective), descendants: true }, { propertyName: "someDirList", predicate: i0.forwardRef(() => SomeDirective), descendants: true }], ngImport: i0, template: ` <div someDir></div> `, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => SomeDirective), selector: "[someDir]" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ViewQueryComponent, decorators: [{ type: Component, args: [{ selector: 'view-query-component', template: ` <div someDir></div> `, standalone: false }] }], propDecorators: { someDir: [{ type: ViewChild, args: [forwardRef(() => SomeDirective)] }], someDirList: [{ type: ViewChildren, args: [forwardRef(() => SomeDirective)] }] } }); export class MyApp { } 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: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "my-app", ngImport: i0, template: ` <view-query-component></view-query-component> `, isInline: true, dependencies: [{ kind: "component", type: ViewQueryComponent, selector: "view-query-component" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{ type: Component, args: [{ selector: 'my-app', template: ` <view-query-component></view-query-component> `, standalone: false }] }] }); export class SomeDirective { } SomeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", versio
{ "end_byte": 7907, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js_7908_15319
: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SomeDirective, isStandalone: false, selector: "[someDir]", ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ selector: '[someDir]', standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [SomeDirective, ViewQueryComponent, MyApp] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [SomeDirective, ViewQueryComponent, MyApp] }] }] }); /**************************************************************************************************** * PARTIAL FILE: view_query_forward_ref.d.ts ****************************************************************************************************/ import { QueryList } from '@angular/core'; import * as i0 from "@angular/core"; export declare class ViewQueryComponent { someDir: SomeDirective; someDirList: QueryList<SomeDirective>; static ɵfac: i0.ɵɵFactoryDeclaration<ViewQueryComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ViewQueryComponent, "view-query-component", never, {}, {}, never, never, false, never>; } export declare class MyApp { static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never, false, never>; } export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDeclaration<SomeDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SomeDirective, "[someDir]", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof SomeDirective, typeof ViewQueryComponent, typeof MyApp], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: view_query_for_local_ref.js ****************************************************************************************************/ import { Component, NgModule, QueryList, ViewChild, ViewChildren } from '@angular/core'; import * as i0 from "@angular/core"; export class ViewQueryComponent { } ViewQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ViewQueryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); ViewQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ViewQueryComponent, isStandalone: false, selector: "view-query-component", viewQueries: [{ propertyName: "myRef", first: true, predicate: ["myRef"], descendants: true }, { propertyName: "myRefs", predicate: ["myRef1, myRef2, myRef3"], descendants: true }], ngImport: i0, template: ` <div #myRef></div> <div #myRef1></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ViewQueryComponent, decorators: [{ type: Component, args: [{ selector: 'view-query-component', template: ` <div #myRef></div> <div #myRef1></div> `, standalone: false }] }], propDecorators: { myRef: [{ type: ViewChild, args: ['myRef'] }], myRefs: [{ type: ViewChildren, args: ['myRef1, myRef2, myRef3'] }] } }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [ViewQueryComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [ViewQueryComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: view_query_for_local_ref.d.ts ****************************************************************************************************/ import { QueryList } from '@angular/core'; import * as i0 from "@angular/core"; export declare class ViewQueryComponent { myRef: any; myRefs: QueryList<any>; static ɵfac: i0.ɵɵFactoryDeclaration<ViewQueryComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ViewQueryComponent, "view-query-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof ViewQueryComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: some.directive.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class SomeDirective { } SomeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SomeDirective, isStandalone: false, selector: "[someDir]", ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ selector: '[someDir]', standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: some.directive.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDeclaration<SomeDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SomeDirective, "[someDir]",
{ "end_byte": 15319, "start_byte": 7908, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js_15320_23171
never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: static_view_query.js ****************************************************************************************************/ import { Component, ElementRef, NgModule, ViewChild } from '@angular/core'; import { SomeDirective } from './some.directive'; import * as i0 from "@angular/core"; export class ViewQueryComponent { } ViewQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ViewQueryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); ViewQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ViewQueryComponent, isStandalone: false, selector: "view-query-component", viewQueries: [{ propertyName: "someDir", first: true, predicate: SomeDirective, descendants: true, static: true }, { propertyName: "foo", first: true, predicate: ["foo"], descendants: true }], ngImport: i0, template: ` <div someDir></div> `, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => SomeDirective), selector: "[someDir]" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ViewQueryComponent, decorators: [{ type: Component, args: [{ selector: 'view-query-component', template: ` <div someDir></div> `, standalone: false }] }], propDecorators: { someDir: [{ type: ViewChild, args: [SomeDirective, { static: true }] }], foo: [{ type: ViewChild, args: ['foo'] }] } }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [SomeDirective, ViewQueryComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [SomeDirective, ViewQueryComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: static_view_query.d.ts ****************************************************************************************************/ import { ElementRef } from '@angular/core'; import { SomeDirective } from './some.directive'; import * as i0 from "@angular/core"; import * as i1 from "./some.directive"; export declare class ViewQueryComponent { someDir: SomeDirective; foo: ElementRef; static ɵfac: i0.ɵɵFactoryDeclaration<ViewQueryComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ViewQueryComponent, "view-query-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof i1.SomeDirective, typeof ViewQueryComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: some.directive.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class SomeDirective { } SomeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SomeDirective, isStandalone: false, selector: "[someDir]", ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ selector: '[someDir]', standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: some.directive.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDeclaration<SomeDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SomeDirective, "[someDir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: view_query_read_token.js ****************************************************************************************************/ import { Component, ElementRef, NgModule, QueryList, TemplateRef, ViewChild, ViewChildren } from '@angular/core'; import { SomeDirective } from './some.directive'; import * as i0 from "@angular/core"; export class ViewQueryComponent { } ViewQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ViewQueryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); ViewQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ViewQueryComponent, isStandalone: false, selector: "view-query-component", viewQueries: [{ propertyName: "myRef", first: true, predicate: ["myRef"], descendants: true, read: TemplateRef }, { propertyName: "someDir", first: true, predicate: SomeDirective, descendants: true, read: ElementRef }, { propertyName: "myRefs", predicate: ["myRef1, myRef2, myRef3"], descendants: true, read: ElementRef }, { propertyName: "someDirs", predicate: SomeDirective, descendants: true, read: TemplateRef }], ngImport: i0, template: ` <div someDir></div> <div #myRef></div> <div #myRef1></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ViewQueryComponent, decorators: [{ type: Component, args: [{ selector: 'view-query-component', template: ` <div someDir></div> <div #myRef></div> <div #myRef1></div> `, standalone: false }] }], propDecorators: { myRef: [{ type: ViewChild, args: ['myRef', { read: TemplateRef }] }], myRefs: [{ type: ViewChildren, args: ['myRef1, myRef2, myRef3', { read: ElementRef }] }], someDir: [{ type: ViewChild, args: [SomeDirective, { read: ElementRef }] }], someDirs: [{ type: ViewChildren, args: [SomeDirective, { read: TemplateRef }] }] } }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [ViewQueryComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACE
{ "end_byte": 23171, "start_byte": 15320, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js_23172_31379
OLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [ViewQueryComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: view_query_read_token.d.ts ****************************************************************************************************/ import { ElementRef, QueryList, TemplateRef } from '@angular/core'; import * as i0 from "@angular/core"; export declare class ViewQueryComponent { myRef: TemplateRef<unknown>; myRefs: QueryList<ElementRef>; someDir: ElementRef; someDirs: QueryList<TemplateRef<unknown>>; static ɵfac: i0.ɵɵFactoryDeclaration<ViewQueryComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ViewQueryComponent, "view-query-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof ViewQueryComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: some.directive.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class SomeDirective { } SomeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SomeDirective, isStandalone: false, selector: "[someDir]", ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ selector: '[someDir]', standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: some.directive.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDeclaration<SomeDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SomeDirective, "[someDir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: content_query_for_directive.js ****************************************************************************************************/ import { Component, ContentChild, ContentChildren, NgModule, QueryList } from '@angular/core'; import { SomeDirective } from './some.directive'; import * as i0 from "@angular/core"; export class ContentQueryComponent { } ContentQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ContentQueryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); ContentQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ContentQueryComponent, isStandalone: false, selector: "content-query-component", queries: [{ propertyName: "someDir", first: true, predicate: SomeDirective, descendants: true }, { propertyName: "someDirList", predicate: SomeDirective }], ngImport: i0, template: ` <div><ng-content></ng-content></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ContentQueryComponent, decorators: [{ type: Component, args: [{ selector: 'content-query-component', template: ` <div><ng-content></ng-content></div> `, standalone: false }] }], propDecorators: { someDir: [{ type: ContentChild, args: [SomeDirective] }], someDirList: [{ type: ContentChildren, args: [SomeDirective] }] } }); export class MyApp { } 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: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "my-app", ngImport: i0, template: ` <content-query-component> <div someDir></div> </content-query-component> `, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => SomeDirective), selector: "[someDir]" }, { kind: "component", type: i0.forwardRef(() => ContentQueryComponent), selector: "content-query-component" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{ type: Component, args: [{ selector: 'my-app', template: ` <content-query-component> <div someDir></div> </content-query-component> `, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [SomeDirective, ContentQueryComponent, MyApp] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [SomeDirective, ContentQueryComponent, MyApp] }] }] }); /**************************************************************************************************** * PARTIAL FILE: content_query_for_directive.d.ts ****************************************************************************************************/ import { QueryList } from '@angular/core'; import { SomeDirective } from './some.directive'; import * as i0 from "@angular/core"; import * as i1 from "./some.directive"; export declare class ContentQueryComponent { someDir: SomeDirective; someDirList: QueryList<SomeDirective>; static ɵfac: i0.ɵɵFactoryDeclaration<ContentQueryComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ContentQueryComponent, "content-query-component", never, {}, {}, ["someDir", "someDirList"], ["*"], false, never>; } export declare class MyApp { static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof i1.SomeDirective, typeof ContentQueryComponent, typeof MyApp], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: content_query_forward_ref.js ****************************************************************************************************/ import { Component, ContentChild, ContentChildren, Directive, forwardRef, NgModule, QueryList } from '@angular/core'; import * as i0 from "@angular/core"; export class ContentQueryComponent { } ContentQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ContentQueryComponen
{ "end_byte": 31379, "start_byte": 23172, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js_31380_38631
, deps: [], target: i0.ɵɵFactoryTarget.Component }); ContentQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ContentQueryComponent, isStandalone: false, selector: "content-query-component", queries: [{ propertyName: "someDir", first: true, predicate: i0.forwardRef(() => SomeDirective), descendants: true }, { propertyName: "someDirList", predicate: i0.forwardRef(() => SomeDirective) }], ngImport: i0, template: ` <div><ng-content></ng-content></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ContentQueryComponent, decorators: [{ type: Component, args: [{ selector: 'content-query-component', template: ` <div><ng-content></ng-content></div> `, standalone: false }] }], propDecorators: { someDir: [{ type: ContentChild, args: [forwardRef(() => SomeDirective)] }], someDirList: [{ type: ContentChildren, args: [forwardRef(() => SomeDirective)] }] } }); export class MyApp { } 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: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "my-app", ngImport: i0, template: ` <content-query-component> <div someDir></div> </content-query-component> `, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => SomeDirective), selector: "[someDir]" }, { kind: "component", type: i0.forwardRef(() => ContentQueryComponent), selector: "content-query-component" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{ type: Component, args: [{ selector: 'my-app', template: ` <content-query-component> <div someDir></div> </content-query-component> `, standalone: false }] }] }); export class SomeDirective { } SomeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SomeDirective, isStandalone: false, selector: "[someDir]", ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ selector: '[someDir]', standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [SomeDirective, ContentQueryComponent, MyApp] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [SomeDirective, ContentQueryComponent, MyApp] }] }] }); /**************************************************************************************************** * PARTIAL FILE: content_query_forward_ref.d.ts ****************************************************************************************************/ import { QueryList } from '@angular/core'; import * as i0 from "@angular/core"; export declare class ContentQueryComponent { someDir: SomeDirective; someDirList: QueryList<SomeDirective>; static ɵfac: i0.ɵɵFactoryDeclaration<ContentQueryComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ContentQueryComponent, "content-query-component", never, {}, {}, ["someDir", "someDirList"], ["*"], false, never>; } export declare class MyApp { static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never, false, never>; } export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDeclaration<SomeDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SomeDirective, "[someDir]", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof SomeDirective, typeof ContentQueryComponent, typeof MyApp], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: content_query_for_local_ref.js ****************************************************************************************************/ import { Component, ContentChild, ContentChildren, NgModule, QueryList } from '@angular/core'; import * as i0 from "@angular/core"; export class ContentQueryComponent { } ContentQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ContentQueryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); ContentQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ContentQueryComponent, isStandalone: false, selector: "content-query-component", queries: [{ propertyName: "myRef", first: true, predicate: ["myRef"], descendants: true }, { propertyName: "myRefs", predicate: ["myRef1, myRef2, myRef3"] }], ngImport: i0, template: ` <div #myRef></div> <div #myRef1></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ContentQueryComponent, decorators: [{ type: Component, args: [{ selector: 'content-query-component', template: ` <div #myRef></div> <div #myRef1></div> `, standalone: false }] }], propDecorators: { myRef: [{ type: ContentChild, args: ['myRef'] }], myRefs: [{ type: ContentChildren, args: ['myRef1, myRef2, myRef3'] }] } }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [ContentQueryComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12
{ "end_byte": 38631, "start_byte": 31380, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js_38632_46682
0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [ContentQueryComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: content_query_for_local_ref.d.ts ****************************************************************************************************/ import { QueryList } from '@angular/core'; import * as i0 from "@angular/core"; export declare class ContentQueryComponent { myRef: any; myRefs: QueryList<any>; static ɵfac: i0.ɵɵFactoryDeclaration<ContentQueryComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ContentQueryComponent, "content-query-component", never, {}, {}, ["myRef", "myRefs"], never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof ContentQueryComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: some.directive.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class SomeDirective { } SomeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SomeDirective, isStandalone: false, selector: "[someDir]", ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ selector: '[someDir]', standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: some.directive.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDeclaration<SomeDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SomeDirective, "[someDir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: static_content_query.js ****************************************************************************************************/ import { Component, ContentChild, ElementRef, NgModule } from '@angular/core'; import { SomeDirective } from './some.directive'; import * as i0 from "@angular/core"; export class ContentQueryComponent { } ContentQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ContentQueryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); ContentQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ContentQueryComponent, isStandalone: false, selector: "content-query-component", queries: [{ propertyName: "someDir", first: true, predicate: SomeDirective, descendants: true, static: true }, { propertyName: "foo", first: true, predicate: ["foo"], descendants: true }], ngImport: i0, template: ` <div><ng-content></ng-content></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ContentQueryComponent, decorators: [{ type: Component, args: [{ selector: 'content-query-component', template: ` <div><ng-content></ng-content></div> `, standalone: false }] }], propDecorators: { someDir: [{ type: ContentChild, args: [SomeDirective, { static: true }] }], foo: [{ type: ContentChild, args: ['foo'] }] } }); export class MyApp { } 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: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "my-app", ngImport: i0, template: ` <content-query-component> <div someDir></div> </content-query-component> `, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => SomeDirective), selector: "[someDir]" }, { kind: "component", type: i0.forwardRef(() => ContentQueryComponent), selector: "content-query-component" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{ type: Component, args: [{ selector: 'my-app', template: ` <content-query-component> <div someDir></div> </content-query-component> `, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [SomeDirective, ContentQueryComponent, MyApp] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [SomeDirective, ContentQueryComponent, MyApp] }] }] }); /**************************************************************************************************** * PARTIAL FILE: static_content_query.d.ts ****************************************************************************************************/ import { ElementRef } from '@angular/core'; import { SomeDirective } from './some.directive'; import * as i0 from "@angular/core"; import * as i1 from "./some.directive"; export declare class ContentQueryComponent { someDir: SomeDirective; foo: ElementRef; static ɵfac: i0.ɵɵFactoryDeclaration<ContentQueryComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ContentQueryComponent, "content-query-component", never, {}, {}, ["someDir", "foo"], ["*"], false, never>; } export declare class MyApp { static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof i1.SomeDirective, typeof ContentQueryComponent, typeof MyApp], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: some.directive.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class SomeDirective { } SomeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, deps: [], target: i0.ɵɵFactoryTar
{ "end_byte": 46682, "start_byte": 38632, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js_46684_54561
t.Directive }); SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SomeDirective, isStandalone: false, selector: "[someDir]", ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ selector: '[someDir]', standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: some.directive.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDeclaration<SomeDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SomeDirective, "[someDir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: content_query_read_token.js ****************************************************************************************************/ import { Component, ContentChild, ContentChildren, ElementRef, NgModule, QueryList, TemplateRef } from '@angular/core'; import { SomeDirective } from './some.directive'; import * as i0 from "@angular/core"; export class ContentQueryComponent { } ContentQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ContentQueryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); ContentQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ContentQueryComponent, isStandalone: false, selector: "content-query-component", queries: [{ propertyName: "myRef", first: true, predicate: ["myRef"], descendants: true, read: TemplateRef }, { propertyName: "someDir", first: true, predicate: SomeDirective, descendants: true, read: ElementRef }, { propertyName: "myRefs", predicate: ["myRef1, myRef2, myRef3"], read: ElementRef }, { propertyName: "someDirs", predicate: SomeDirective, read: TemplateRef }], ngImport: i0, template: ` <div someDir></div> <div #myRef></div> <div #myRef1></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ContentQueryComponent, decorators: [{ type: Component, args: [{ selector: 'content-query-component', template: ` <div someDir></div> <div #myRef></div> <div #myRef1></div> `, standalone: false }] }], propDecorators: { myRef: [{ type: ContentChild, args: ['myRef', { read: TemplateRef }] }], myRefs: [{ type: ContentChildren, args: ['myRef1, myRef2, myRef3', { read: ElementRef }] }], someDir: [{ type: ContentChild, args: [SomeDirective, { read: ElementRef }] }], someDirs: [{ type: ContentChildren, args: [SomeDirective, { read: TemplateRef }] }] } }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [ContentQueryComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [ContentQueryComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: content_query_read_token.d.ts ****************************************************************************************************/ import { ElementRef, QueryList, TemplateRef } from '@angular/core'; import * as i0 from "@angular/core"; export declare class ContentQueryComponent { myRef: TemplateRef<unknown>; myRefs: QueryList<ElementRef>; someDir: ElementRef; someDirs: QueryList<TemplateRef<unknown>>; static ɵfac: i0.ɵɵFactoryDeclaration<ContentQueryComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ContentQueryComponent, "content-query-component", never, {}, {}, ["myRef", "someDir", "myRefs", "someDirs"], never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof ContentQueryComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: some.directive.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class SomeDirective { } SomeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SomeDirective, isStandalone: false, selector: "[someDir]", ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ selector: '[someDir]', standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: some.directive.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDeclaration<SomeDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SomeDirective, "[someDir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: query_with_emit_distinct_changes_only.js ****************************************************************************************************/ import { Component, ContentChildren, NgModule, QueryList, ViewChildren } from '@angular/core'; import { SomeDirective } from './some.directive'; import * as i0 from "@angular/core"; export class ContentQueryComponent { } ContentQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ContentQueryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); ContentQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ContentQueryComponent, isStandalone: false, selector: "content-query-component", queries: [{ propertyName: "myRefs", predicate: ["myRef"] }, { propertyName: "oldMyRefs", predicate: ["myRef"], emitDistinctChangesOnly: false }], viewQueries: [{ propertyName: "someDirs", predicate: SomeDirective, descendants: true }, { propertyName: "oldSomeDirs", predicate: SomeDirective, emitDistinctChangesOnly: false, descendants: true }], ngImport: i0, template: ` <div someDir></div>
{ "end_byte": 54561, "start_byte": 46684, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js_54562_57938
<div #myRef></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ContentQueryComponent, decorators: [{ type: Component, args: [{ selector: 'content-query-component', template: ` <div someDir></div> <div #myRef></div> `, standalone: false }] }], propDecorators: { myRefs: [{ type: ContentChildren, args: ['myRef', { emitDistinctChangesOnly: true }] }], oldMyRefs: [{ type: ContentChildren, args: ['myRef', { emitDistinctChangesOnly: false }] }], someDirs: [{ type: ViewChildren, args: [SomeDirective, { emitDistinctChangesOnly: true }] }], oldSomeDirs: [{ type: ViewChildren, args: [SomeDirective, { emitDistinctChangesOnly: false }] }] } }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [ContentQueryComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [ContentQueryComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: query_with_emit_distinct_changes_only.d.ts ****************************************************************************************************/ import { ElementRef, QueryList } from '@angular/core'; import * as i0 from "@angular/core"; export declare class ContentQueryComponent { myRefs: QueryList<ElementRef>; oldMyRefs: QueryList<ElementRef>; someDirs: QueryList<any>; oldSomeDirs: QueryList<any>; static ɵfac: i0.ɵɵFactoryDeclaration<ContentQueryComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ContentQueryComponent, "content-query-component", never, {}, {}, ["myRefs", "oldMyRefs"], never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof ContentQueryComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; }
{ "end_byte": 57938, "start_byte": 54562, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_for_directive.ts_0_505
import {Component, NgModule, QueryList, ViewChild, ViewChildren} from '@angular/core'; import {SomeDirective} from './some.directive'; @Component({ selector: 'view-query-component', template: ` <div someDir></div> `, standalone: false }) export class ViewQueryComponent { @ViewChild(SomeDirective) someDir!: SomeDirective; @ViewChildren(SomeDirective) someDirs!: QueryList<SomeDirective>; } @NgModule({declarations: [SomeDirective, ViewQueryComponent]}) export class MyModule { }
{ "end_byte": 505, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_for_directive.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/static_content_query.ts_0_714
import {Component, ContentChild, ElementRef, NgModule} from '@angular/core'; import {SomeDirective} from './some.directive'; @Component({ selector: 'content-query-component', template: ` <div><ng-content></ng-content></div> `, standalone: false }) export class ContentQueryComponent { @ContentChild(SomeDirective, {static: true}) someDir!: SomeDirective; @ContentChild('foo') foo!: ElementRef; } @Component({ selector: 'my-app', template: ` <content-query-component> <div someDir></div> </content-query-component> `, standalone: false }) export class MyApp { } @NgModule({declarations: [SomeDirective, ContentQueryComponent, MyApp]}) export class MyModule { }
{ "end_byte": 714, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/static_content_query.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_read_token.ts_0_800
import {Component, ContentChild, ContentChildren, ElementRef, NgModule, QueryList, TemplateRef} from '@angular/core'; import {SomeDirective} from './some.directive'; @Component({ selector: 'content-query-component', template: ` <div someDir></div> <div #myRef></div> <div #myRef1></div> `, standalone: false }) export class ContentQueryComponent { @ContentChild('myRef', {read: TemplateRef}) myRef!: TemplateRef<unknown>; @ContentChildren('myRef1, myRef2, myRef3', {read: ElementRef}) myRefs!: QueryList<ElementRef>; @ContentChild(SomeDirective, {read: ElementRef}) someDir!: ElementRef; @ContentChildren(SomeDirective, {read: TemplateRef}) someDirs!: QueryList<TemplateRef<unknown>>; } @NgModule({declarations: [ContentQueryComponent]}) export class MyModule { }
{ "end_byte": 800, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_read_token.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/query_with_emit_distinct_changes_only.ts_0_808
import {Component, ContentChildren, ElementRef, NgModule, QueryList, TemplateRef, ViewChildren} from '@angular/core'; import {SomeDirective} from './some.directive'; @Component({ selector: 'content-query-component', template: ` <div someDir></div> <div #myRef></div> `, standalone: false }) export class ContentQueryComponent { @ContentChildren('myRef', {emitDistinctChangesOnly: true}) myRefs!: QueryList<ElementRef>; @ContentChildren('myRef', {emitDistinctChangesOnly: false}) oldMyRefs!: QueryList<ElementRef>; @ViewChildren(SomeDirective, {emitDistinctChangesOnly: true}) someDirs!: QueryList<any>; @ViewChildren(SomeDirective, {emitDistinctChangesOnly: false}) oldSomeDirs!: QueryList<any>; } @NgModule({declarations: [ContentQueryComponent]}) export class MyModule { }
{ "end_byte": 808, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/query_with_emit_distinct_changes_only.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_read_token.ts_0_774
import {Component, ElementRef, NgModule, QueryList, TemplateRef, ViewChild, ViewChildren} from '@angular/core'; import {SomeDirective} from './some.directive'; @Component({ selector: 'view-query-component', template: ` <div someDir></div> <div #myRef></div> <div #myRef1></div> `, standalone: false }) export class ViewQueryComponent { @ViewChild('myRef', {read: TemplateRef}) myRef!: TemplateRef<unknown>; @ViewChildren('myRef1, myRef2, myRef3', {read: ElementRef}) myRefs!: QueryList<ElementRef>; @ViewChild(SomeDirective, {read: ElementRef}) someDir!: ElementRef; @ViewChildren(SomeDirective, {read: TemplateRef}) someDirs!: QueryList<TemplateRef<unknown>>; } @NgModule({declarations: [ViewQueryComponent]}) export class MyModule { }
{ "end_byte": 774, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_read_token.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_forward_ref.js_0_672
ViewQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: ViewQueryComponent, selectors: [["view-query-component"]], viewQuery: function ViewQueryComponent_Query(rf, ctx) { if (rf & 1) { $r3$.ɵɵviewQuery(SomeDirective, __QueryFlags.descendants__|__QueryFlags.emitDistinctChangesOnly__); $r3$.ɵɵviewQuery(SomeDirective, __QueryFlags.descendants__|__QueryFlags.emitDistinctChangesOnly__); } if (rf & 2) { let $tmp$; $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDir = $tmp$.first); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDirList = $tmp$); } }, // ... });
{ "end_byte": 672, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_forward_ref.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/static_view_query.js_0_902
const $refs$ = ["foo"]; // ... ViewQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: ViewQueryComponent, selectors: [["view-query-component"]], viewQuery: function ViewQueryComponent_Query(rf, ctx) { if (rf & 1) { $r3$.ɵɵviewQuery(SomeDirective, __QueryFlags.isStatic__|__QueryFlags.descendants__|__QueryFlags.emitDistinctChangesOnly__); $r3$.ɵɵviewQuery($refs$, 5); } if (rf & 2) { let $tmp$; $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDir = $tmp$.first); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.foo = $tmp$.first); } }, standalone: false, decls: 1, vars: 0, consts: [["someDir",""]], template: function ViewQueryComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelement(0, "div", 0); } }, dependencies: () => [SomeDirective], encapsulation: 2 });
{ "end_byte": 902, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/static_view_query.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_forward_ref.ts_0_855
import {Component, ContentChild, ContentChildren, Directive, forwardRef, NgModule, QueryList} from '@angular/core'; @Component({ selector: 'content-query-component', template: ` <div><ng-content></ng-content></div> `, standalone: false }) export class ContentQueryComponent { @ContentChild(forwardRef(() => SomeDirective)) someDir!: SomeDirective; @ContentChildren(forwardRef(() => SomeDirective)) someDirList!: QueryList<SomeDirective>; } @Component({ selector: 'my-app', template: ` <content-query-component> <div someDir></div> </content-query-component> `, standalone: false }) export class MyApp { } @Directive({ selector: '[someDir]', standalone: false }) export class SomeDirective { } @NgModule({declarations: [SomeDirective, ContentQueryComponent, MyApp]}) export class MyModule { }
{ "end_byte": 855, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_forward_ref.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/static_content_query.js_0_1000
ContentQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: ContentQueryComponent, selectors: [["content-query-component"]], contentQueries: function ContentQueryComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) { $r3$.ɵɵcontentQuery( dirIndex, SomeDirective, __QueryFlags.isStatic__|__QueryFlags.descendants__|__QueryFlags.emitDistinctChangesOnly__); $r3$.ɵɵcontentQuery(dirIndex, $ref0$, 5); } if (rf & 2) { let $tmp$; $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDir = $tmp$.first); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.foo = $tmp$.first); } }, standalone: false, ngContentSelectors: $_c1$, decls: 2, vars: 0, template: function ContentQueryComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵprojectionDef(); $r3$.ɵɵelementStart(0, "div"); $r3$.ɵɵprojection(1); $r3$.ɵɵelementEnd(); } }, encapsulation: 2 });
{ "end_byte": 1000, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/static_content_query.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_read_token.js_0_946
const $e0_attrs$ = ["myRef"]; const $e1_attrs$ = ["myRef1", "myRef2", "myRef3"]; // ... ContentQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ // ... contentQueries: function ContentQueryComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) { $r3$.ɵɵcontentQuery(dirIndex, $e0_attrs$, 5, TemplateRef); $r3$.ɵɵcontentQuery(dirIndex, SomeDirective, 5, ElementRef); $r3$.ɵɵcontentQuery(dirIndex, $e1_attrs$, 4, ElementRef); $r3$.ɵɵcontentQuery(dirIndex, SomeDirective, 4, TemplateRef); } if (rf & 2) { let $tmp$; $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.myRef = $tmp$.first); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDir = $tmp$.first); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.myRefs = $tmp$); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDirs = $tmp$); } }, // ... });
{ "end_byte": 946, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_read_token.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/query_with_emit_distinct_changes_only.js_0_1106
const $e0_attrs$ = ["myRef"]; // ... ContentQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ // ... contentQueries: function ContentQueryComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) { $r3$.ɵɵcontentQuery(dirIndex, $e0_attrs$, __QueryFlags.emitDistinctChangesOnly__); $r3$.ɵɵcontentQuery(dirIndex, $e0_attrs$, __QueryFlags.none__); } if (rf & 2) { let $tmp$; $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.myRefs = $tmp$); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.oldMyRefs = $tmp$); } }, // ... viewQuery: function ContentQueryComponent_Query(rf, ctx) { if (rf & 1) { $r3$.ɵɵviewQuery(SomeDirective, __QueryFlags.emitDistinctChangesOnly__|__QueryFlags.descendants__); $r3$.ɵɵviewQuery(SomeDirective, __QueryFlags.descendants__); } if (rf & 2) { let $tmp$; $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDirs = $tmp$); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.oldSomeDirs = $tmp$); } }, //... });
{ "end_byte": 1106, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/query_with_emit_distinct_changes_only.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_read_token.js_0_872
const $e0_attrs$ = ["myRef"]; const $e1_attrs$ = ["myRef1", "myRef2", "myRef3"]; // ... ViewQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ // ... viewQuery: function ViewQueryComponent_Query(rf, ctx) { if (rf & 1) { $r3$.ɵɵviewQuery($e0_attrs$, 5, TemplateRef); $r3$.ɵɵviewQuery(SomeDirective, 5, ElementRef); $r3$.ɵɵviewQuery($e1_attrs$, 5, ElementRef); $r3$.ɵɵviewQuery(SomeDirective, 5, TemplateRef); } if (rf & 2) { let $tmp$; $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.myRef = $tmp$.first); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDir = $tmp$.first); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.myRefs = $tmp$); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDirs = $tmp$); } }, // ... });
{ "end_byte": 872, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_read_token.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_forward_ref.ts_0_780
import {Component, Directive, forwardRef, NgModule, QueryList, ViewChild, ViewChildren} from '@angular/core'; @Component({ selector: 'view-query-component', template: ` <div someDir></div> `, standalone: false }) export class ViewQueryComponent { @ViewChild(forwardRef(() => SomeDirective)) someDir!: SomeDirective; @ViewChildren(forwardRef(() => SomeDirective)) someDirList!: QueryList<SomeDirective>; } @Component({ selector: 'my-app', template: ` <view-query-component></view-query-component> `, standalone: false }) export class MyApp { } @Directive({ selector: '[someDir]', standalone: false }) export class SomeDirective { } @NgModule({declarations: [SomeDirective, ViewQueryComponent, MyApp]}) export class MyModule { }
{ "end_byte": 780, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_forward_ref.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_for_directive.js_0_904
ContentQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: ContentQueryComponent, selectors: [["content-query-component"]], contentQueries: function ContentQueryComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) { $r3$.ɵɵcontentQuery(dirIndex, SomeDirective, 5); $r3$.ɵɵcontentQuery(dirIndex, SomeDirective, 4); } if (rf & 2) { let $tmp$; $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDir = $tmp$.first); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDirList = $tmp$); } }, standalone: false, ngContentSelectors: _c0, decls: 2, vars: 0, template: function ContentQueryComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵprojectionDef(); $r3$.ɵɵelementStart(0, "div"); $r3$.ɵɵprojection(1); $r3$.ɵɵelementEnd(); } }, encapsulation: 2 });
{ "end_byte": 904, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_for_directive.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_for_local_ref.js_0_609
const $e0_attrs$ = ["myRef"]; const $e1_attrs$ = ["myRef1", "myRef2", "myRef3"]; // ... ContentQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ // ... contentQueries: function ContentQueryComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) { $r3$.ɵɵcontentQuery(dirIndex, $e0_attrs$, 5); $r3$.ɵɵcontentQuery(dirIndex, $e1_attrs$, 4); } if (rf & 2) { let $tmp$; $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.myRef = $tmp$.first); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.myRefs = $tmp$); } }, // ... });
{ "end_byte": 609, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/content_query_for_local_ref.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_for_local_ref.js_0_559
const $e0_attrs$ = ["myRef"]; const $e1_attrs$ = ["myRef1", "myRef2", "myRef3"]; // ... ViewQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ // ... viewQuery: function ViewQueryComponent_Query(rf, ctx) { if (rf & 1) { $r3$.ɵɵviewQuery($e0_attrs$, 5); $r3$.ɵɵviewQuery($e1_attrs$, 5); } if (rf & 2) { let $tmp$; $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.myRef = $tmp$.first); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.myRefs = $tmp$); } }, // ... });
{ "end_byte": 559, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_for_local_ref.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_for_directive.js_0_789
ViewQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: ViewQueryComponent, selectors: [["view-query-component"]], viewQuery: function ViewQueryComponent_Query(rf, ctx) { if (rf & 1) { $r3$.ɵɵviewQuery(SomeDirective, 5); $r3$.ɵɵviewQuery(SomeDirective, 5); } if (rf & 2) { let $tmp$; $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDir = $tmp$.first); $r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDirs = $tmp$); } }, standalone: false, decls: 1, vars: 0, consts: [["someDir",""]], template: function ViewQueryComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelement(0, "div", 0); } }, dependencies: () => [SomeDirective], encapsulation: 2 });
{ "end_byte": 789, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/view_query_for_directive.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipes_my_pipe_fac.js_0_107
MyPipe.ɵfac = function MyPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MyPipe)(); };
{ "end_byte": 107, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipes_my_pipe_fac.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipe_invocation.ts_0_601
import {Component, NgModule, OnDestroy, Pipe, PipeTransform} from '@angular/core'; @Pipe({ name: 'myPipe', pure: false, standalone: false }) export class MyPipe implements PipeTransform, OnDestroy { transform(value: any, ...args: any[]) { return value; } ngOnDestroy(): void {} } @Component({ selector: 'my-app', template: '0:{{name | myPipe}}1:{{name | myPipe:1}}2:{{name | myPipe:1:2}}3:{{name | myPipe:1:2:3}}4:{{name | myPipe:1:2:3:4}}', standalone: false }) export class MyApp { name = ''; } @NgModule({declarations: [MyPipe, MyApp]}) export class MyModule { }
{ "end_byte": 601, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipe_invocation.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipe_di_change_detector_ref.ts_0_819
import {ChangeDetectorRef, Component, NgModule, Optional, Pipe, PipeTransform} from '@angular/core'; @Pipe({ name: 'myPipe', standalone: false }) export class MyPipe implements PipeTransform { constructor(changeDetectorRef: ChangeDetectorRef) {} transform(value: any, ...args: any[]) { return value; } } @Pipe({ name: 'myOtherPipe', standalone: false }) export class MyOtherPipe implements PipeTransform { constructor(@Optional() changeDetectorRef: ChangeDetectorRef) {} transform(value: any, ...args: any[]) { return value; } } @Component({ selector: 'my-app', template: '{{name | myPipe }}<p>{{ name | myOtherPipe }}</p>', standalone: false }) export class MyApp { name = 'World'; } @NgModule({declarations: [MyPipe, MyOtherPipe, MyApp]}) export class MyModule { }
{ "end_byte": 819, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipe_di_change_detector_ref.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js_0_6733
/**************************************************************************************************** * PARTIAL FILE: pipes.js ****************************************************************************************************/ import { Component, NgModule, Pipe } from '@angular/core'; import * as i0 from "@angular/core"; export class MyPipe { transform(value, ...args) { return value; } ngOnDestroy() { } } MyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); MyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyPipe, isStandalone: false, name: "myPipe", pure: false }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyPipe, decorators: [{ type: Pipe, args: [{ name: 'myPipe', pure: false, standalone: false }] }] }); export class MyPurePipe { transform(value, ...args) { return value; } } MyPurePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyPurePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); MyPurePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyPurePipe, isStandalone: false, name: "myPurePipe" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyPurePipe, decorators: [{ type: Pipe, args: [{ name: 'myPurePipe', pure: true, standalone: false }] }] }); export class MyApp { constructor() { this.name = 'World'; this.size = 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: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "my-app", ngImport: i0, template: '{{name | myPipe:size | myPurePipe:size }}<p>{{ name | myPipe:1:2:3:4:5 }} {{ name ? 1 : 2 | myPipe }}</p>', isInline: true, dependencies: [{ kind: "pipe", type: MyPipe, name: "myPipe" }, { kind: "pipe", type: MyPurePipe, name: "myPurePipe" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{ type: Component, args: [{ selector: 'my-app', template: '{{name | myPipe:size | myPurePipe:size }}<p>{{ name | myPipe:1:2:3:4:5 }} {{ name ? 1 : 2 | myPipe }}</p>', standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyPipe, MyPurePipe, MyApp] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyPipe, MyPurePipe, MyApp] }] }] }); /**************************************************************************************************** * PARTIAL FILE: pipes.d.ts ****************************************************************************************************/ import { OnDestroy, PipeTransform } from '@angular/core'; import * as i0 from "@angular/core"; export declare class MyPipe implements PipeTransform, OnDestroy { transform(value: any, ...args: any[]): any; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<MyPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<MyPipe, "myPipe", false>; } export declare class MyPurePipe implements PipeTransform { transform(value: any, ...args: any[]): any; static ɵfac: i0.ɵɵFactoryDeclaration<MyPurePipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<MyPurePipe, "myPurePipe", false>; } export declare class MyApp { name: string; size: number; static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyPipe, typeof MyPurePipe, typeof MyApp], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: pipe_invocation.js ****************************************************************************************************/ import { Component, NgModule, Pipe } from '@angular/core'; import * as i0 from "@angular/core"; export class MyPipe { transform(value, ...args) { return value; } ngOnDestroy() { } } MyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); MyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyPipe, isStandalone: false, name: "myPipe", pure: false }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyPipe, decorators: [{ type: Pipe, args: [{ name: 'myPipe', pure: false, standalone: false }] }] }); export class MyApp { constructor() { this.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: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "my-app", ngImport: i0, template: '0:{{name | myPipe}}1:{{name | myPipe:1}}2:{{name | myPipe:1:2}}3:{{name | myPipe:1:2:3}}4:{{name | myPipe:1:2:3:4}}', isInline: true, dependencies: [{ kind: "pipe", type: MyPipe, name: "myPipe" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImp
{ "end_byte": 6733, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js_6734_13463
rt: i0, type: MyApp, decorators: [{ type: Component, args: [{ selector: 'my-app', template: '0:{{name | myPipe}}1:{{name | myPipe:1}}2:{{name | myPipe:1:2}}3:{{name | myPipe:1:2:3}}4:{{name | myPipe:1:2:3:4}}', standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyPipe, MyApp] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyPipe, MyApp] }] }] }); /**************************************************************************************************** * PARTIAL FILE: pipe_invocation.d.ts ****************************************************************************************************/ import { OnDestroy, PipeTransform } from '@angular/core'; import * as i0 from "@angular/core"; export declare class MyPipe implements PipeTransform, OnDestroy { transform(value: any, ...args: any[]): any; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<MyPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<MyPipe, "myPipe", false>; } export declare class MyApp { name: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyPipe, typeof MyApp], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: pipe_di_change_detector_ref.js ****************************************************************************************************/ import { ChangeDetectorRef, Component, NgModule, Optional, Pipe } from '@angular/core'; import * as i0 from "@angular/core"; export class MyPipe { constructor(changeDetectorRef) { } transform(value, ...args) { return value; } } MyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyPipe, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); MyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyPipe, isStandalone: false, name: "myPipe" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyPipe, decorators: [{ type: Pipe, args: [{ name: 'myPipe', standalone: false }] }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }] }); export class MyOtherPipe { constructor(changeDetectorRef) { } transform(value, ...args) { return value; } } MyOtherPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyOtherPipe, deps: [{ token: i0.ChangeDetectorRef, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); MyOtherPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyOtherPipe, isStandalone: false, name: "myOtherPipe" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyOtherPipe, decorators: [{ type: Pipe, args: [{ name: 'myOtherPipe', standalone: false }] }], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{ type: Optional }] }] }); export class MyApp { constructor() { this.name = 'World'; } } 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: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: false, selector: "my-app", ngImport: i0, template: '{{name | myPipe }}<p>{{ name | myOtherPipe }}</p>', isInline: true, dependencies: [{ kind: "pipe", type: MyPipe, name: "myPipe" }, { kind: "pipe", type: MyOtherPipe, name: "myOtherPipe" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{ type: Component, args: [{ selector: 'my-app', template: '{{name | myPipe }}<p>{{ name | myOtherPipe }}</p>', standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyPipe, MyOtherPipe, MyApp] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyPipe, MyOtherPipe, MyApp] }] }] }); /**************************************************************************************************** * PARTIAL FILE: pipe_di_change_detector_ref.d.ts ****************************************************************************************************/ import { ChangeDetectorRef, PipeTransform } from '@angular/core'; import * as i0 from "@angular/core"; export declare class MyPipe implements PipeTransform { constructor(changeDetectorRef: ChangeDetectorRef); transform(value: any, ...args: any[]): any; static ɵfac: i0.ɵɵFactoryDeclaration<MyPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<MyPipe, "myPipe", false>; } export declare class MyOtherPipe implements PipeTransform { constructor(changeDetectorRef: ChangeDetectorRef); transform(value: any, ...args: any[]): any; stati
{ "end_byte": 13463, "start_byte": 6734, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js_13464_14275
ɵfac: i0.ɵɵFactoryDeclaration<MyOtherPipe, [{ optional: true; }]>; static ɵpipe: i0.ɵɵPipeDeclaration<MyOtherPipe, "myOtherPipe", false>; } export declare class MyApp { name: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyPipe, typeof MyOtherPipe, typeof MyApp], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; }
{ "end_byte": 14275, "start_byte": 13464, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipes_my_pure_pipe_def.js_0_136
MyPurePipe.ɵpipe = /*@__PURE__*/ $r3$.ɵɵdefinePipe({ name: "myPurePipe", type: MyPurePipe, pure: true, standalone: false });
{ "end_byte": 136, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipes_my_pure_pipe_def.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipe_di_change_detector_ref_my_pipe_def.js_0_124
MyPipe.ɵpipe = /*@__PURE__*/ $r3$.ɵɵdefinePipe({ name: "myPipe", type: MyPipe, pure: true, standalone: false });
{ "end_byte": 124, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipe_di_change_detector_ref_my_pipe_def.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipes.ts_0_811
import {Component, NgModule, OnDestroy, Pipe, PipeTransform} from '@angular/core'; @Pipe({ name: 'myPipe', pure: false, standalone: false }) export class MyPipe implements PipeTransform, OnDestroy { transform(value: any, ...args: any[]) { return value; } ngOnDestroy(): void {} } @Pipe({ name: 'myPurePipe', pure: true, standalone: false }) export class MyPurePipe implements PipeTransform { transform(value: any, ...args: any[]) { return value; } } @Component({ selector: 'my-app', template: '{{name | myPipe:size | myPurePipe:size }}<p>{{ name | myPipe:1:2:3:4:5 }} {{ name ? 1 : 2 | myPipe }}</p>', standalone: false }) export class MyApp { name = 'World'; size = 0; } @NgModule({declarations: [MyPipe, MyPurePipe, MyApp]}) export class MyModule { }
{ "end_byte": 811, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipes.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipe_di_change_detector_ref_my_other_pipe_fac.js_0_174
MyOtherPipe.ɵfac = function MyOtherPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MyOtherPipe)($i0$.ɵɵdirectiveInject($i0$.ChangeDetectorRef, 24)); };
{ "end_byte": 174, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipe_di_change_detector_ref_my_other_pipe_fac.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipes_my_pure_pipe_fac.js_0_119
MyPurePipe.ɵfac = function MyPurePipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MyPurePipe)(); };
{ "end_byte": 119, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipes_my_pure_pipe_fac.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipe_invocation.js_0_841
// ... MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyApp, selectors: [["my-app"]], standalone: false, decls: 6, vars: 27, template: function MyApp_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0); $r3$.ɵɵpipe(1, "myPipe"); $r3$.ɵɵpipe(2, "myPipe"); $r3$.ɵɵpipe(3, "myPipe"); $r3$.ɵɵpipe(4, "myPipe"); $r3$.ɵɵpipe(5, "myPipe"); } if (rf & 2) { $r3$.ɵɵtextInterpolate5( "0:", i0.ɵɵpipeBind1(1, 5, ctx.name), "1:", i0.ɵɵpipeBind2(2, 7, ctx.name, 1), "2:", i0.ɵɵpipeBind3(3, 10, ctx.name, 1, 2), "3:", i0.ɵɵpipeBind4(4, 14, ctx.name, 1, 2, 3), "4:", i0.ɵɵpipeBindV(5, 19, $r3$.ɵɵpureFunction1(25, $c0$, ctx.name)), "" ); } }, dependencies: [MyPipe], encapsulation: 2 });
{ "end_byte": 841, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipe_invocation.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipe_di_change_detector_ref_my_other_pipe_def.js_0_139
MyOtherPipe.ɵpipe = /*@__PURE__*/ $r3$.ɵɵdefinePipe({ name: "myOtherPipe", type: MyOtherPipe, pure: true, standalone: false });
{ "end_byte": 139, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipe_di_change_detector_ref_my_other_pipe_def.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipes_my_app_def.pipeline.js_0_908
const $c0$ = $a0$ => [$a0$, 1, 2, 3, 4, 5]; // ... MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyApp, selectors: [["my-app"]], standalone: false, decls: 7, vars: 20, template: function MyApp_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0); $r3$.ɵɵpipe(1, "myPipe"); $r3$.ɵɵpipe(2, "myPurePipe"); $r3$.ɵɵelementStart(3, "p"); $r3$.ɵɵtext(4); $r3$.ɵɵpipe(5, "myPipe"); $r3$.ɵɵpipe(6, "myPipe"); $r3$.ɵɵelementEnd(); } if (rf & 2) { $r3$.ɵɵtextInterpolate($r3$.ɵɵpipeBind2(2, 6, $r3$.ɵɵpipeBind2(1, 3, ctx.name, ctx.size), ctx.size)); $r3$.ɵɵadvance(4); $r3$.ɵɵtextInterpolate2("", $r3$.ɵɵpipeBindV(5, 9, $r3$.ɵɵpureFunction1(18, $c0$, ctx.name)), " ", ctx.name ? 1 : $r3$.ɵɵpipeBind1(6, 16, 2), ""); } }, dependencies: [MyPipe, MyPurePipe], encapsulation: 2 });
{ "end_byte": 908, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipes_my_app_def.pipeline.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipe_di_change_detector_ref_my_pipe_fac.js_0_159
MyPipe.ɵfac = function MyPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MyPipe)($i0$.ɵɵdirectiveInject($i0$.ChangeDetectorRef, 16)); };
{ "end_byte": 159, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipe_di_change_detector_ref_my_pipe_fac.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipes_my_pipe_def.js_0_125
MyPipe.ɵpipe = /*@__PURE__*/ $r3$.ɵɵdefinePipe({ name: "myPipe", type: MyPipe, pure: false, standalone: false });
{ "end_byte": 125, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipes_my_pipe_def.js" }