_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_multiple_bindings_mixed.js_0_217
template: function MyComponent_Template(rf, ctx) { … if (rf & 2) { $r3$.ɵɵpropertyInterpolate("aria-label", 1 + 3); $r3$.ɵɵproperty("title", 1)("tabindex", 3); $r3$.ɵɵattribute("id", 2); } }
{ "end_byte": 217, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_multiple_bindings_mixed.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_multiple_bindings.ts_0_245
import {Component} from '@angular/core'; @Component({ template: '<button [title]="myTitle" [id]="buttonId" [tabindex]="1"></button>', standalone: false }) export class MyComponent { myTitle = 'hello'; buttonId = 'special-button'; }
{ "end_byte": 245, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_multiple_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_bindings_with_interpolations.js_0_258
template: function MyComponent_Template(rf, ctx) { … if (rf & 2) { $r3$.ɵɵpropertyInterpolate("tabindex", 0 + 3); $r3$.ɵɵpropertyInterpolate2("aria-label", "hello-", 1 + 3, "-", 2 + 3, ""); $r3$.ɵɵproperty("title", 1)("id", 2); } }
{ "end_byte": 258, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_bindings_with_interpolations.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/mixed_one_way_two_way_property_order.js_0_176
if (rf & 2) { $r3$.ɵɵtwoWayProperty("a", ctx.value); $r3$.ɵɵproperty("b", ctx.value); $r3$.ɵɵtwoWayProperty("c", ctx.value); $r3$.ɵɵproperty("d", ctx.value); }
{ "end_byte": 176, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/mixed_one_way_two_way_property_order.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js_0_6791
/**************************************************************************************************** * PARTIAL FILE: bind.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.title = 'Hello World'; } } 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-app", ngImport: i0, template: '<a [title]="title"></a>', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-app', template: '<a [title]="title"></a>', 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: bind.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { title: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-app", 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: interpolation.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.name = 'World'; } } 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: ` <a title="Hello {{name}}"></a>`, 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: ` <a title="Hello {{name}}"></a>`, 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: interpolation.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { 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], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: interpolated_properties.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.name = 'John Doe'; } } 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-app", ngImport: i0, template: ` <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i{{nine}}j"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e"></div> <div title="a{{one}}b{{two}}c{{three}}d"></div> <div title="a{{one}}b{{two}}c"></div> <div title="a{{one}}b"></div> <div title="{{one}}"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", n
{ "end_byte": 6791, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js_6792_13849
Import: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-app', template: ` <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i{{nine}}j"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e"></div> <div title="a{{one}}b{{two}}c{{three}}d"></div> <div title="a{{one}}b{{two}}c"></div> <div title="a{{one}}b"></div> <div title="{{one}}"></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: interpolated_properties.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { name: string; one: any; two: any; three: any; four: any; five: any; six: any; seven: any; eight: any; nine: any; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-app", 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: special_property_remapping.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.forValue = 'some-input'; } } 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: ` <label [for]="forValue"></label>`, 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: ` <label [for]="forValue"></label>`, 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: special_property_remapping.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { forValue: 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], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: temporary_variables.js ****************************************************************************************************/ import { Component, NgModule, Pipe } from '@angular/core'; import * as i0 from "@angular/core"; export class AsyncPipe { transform(v) { } } AsyncPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: AsyncPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); AsyncPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: AsyncPipe, isStandalone: false, name: "async" }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: AsyncPipe, decorators: [{ type: Pipe, args: [{ name: 'async', standalone: false }] }] }); // https://github.com/angular/angular/issues/37194 // Verifies that temporary expressions used for expressions with potential side-effects in // the LHS of a safe navigation access are emitted within the binding expression itself, to // ensure that these temporaries are evaluated during the evaluation of the binding. This // is important for when the LHS contains a pipe, as pipe evaluation depends on the current // binding index. export class MyComponent { constructor() { this.myTitle = 'hello'; } } 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: "ng-component", ngI
{ "end_byte": 13849, "start_byte": 6792, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js_13850_21294
port: i0, template: '<button [title]="myTitle" [id]="(auth().identity() | async)?.id" [tabindex]="1"></button>', isInline: true, dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: '<button [title]="myTitle" [id]="(auth().identity() | async)?.id" [tabindex]="1"></button>', standalone: false }] }] }); export class MyMod { } MyMod.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyMod.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, declarations: [MyComponent, AsyncPipe] }); MyMod.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent, AsyncPipe] }] }] }); /**************************************************************************************************** * PARTIAL FILE: temporary_variables.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class AsyncPipe { transform(v: any): null | any; static ɵfac: i0.ɵɵFactoryDeclaration<AsyncPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<AsyncPipe, "async", false>; } export declare class MyComponent { myTitle: string; auth: () => { identity(): any; }; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDeclaration<MyMod, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyMod, [typeof MyComponent, typeof AsyncPipe], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyMod>; } /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.myTitle = 'hello'; this.buttonId = 'special-button'; } } 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: "ng-component", ngImport: i0, template: '<button [title]="myTitle" [id]="buttonId" [tabindex]="1"></button>', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: '<button [title]="myTitle" [id]="buttonId" [tabindex]="1"></button>', standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings_mixed.js ****************************************************************************************************/ import { Component, Directive, Input, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class ButtonDir { } ButtonDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ButtonDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); ButtonDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ButtonDir, isStandalone: false, selector: "button", inputs: { al: ["aria-label", "al"] }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ButtonDir, decorators: [{ type: Directive, args: [{ selector: 'button', standalone: false }] }], propDecorators: { al: [{ type: Input, args: ['aria-label'] }] } }); 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: "ng-component", ngImport: i0, template: '<button [title]="1" [attr.id]="2" [tabindex]="3" aria-label="{{1 + 3}}"></button>', isInline: true, dependencies: [{ kind: "directive", type: ButtonDir, selector: "button", inputs: ["aria-label"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: '<button [title]="1" [attr.id]="2" [tabindex]="3" aria-label="{{1 + 3}}"></button>', standalone: false }] }] }); export class MyMod { } MyMod.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyMod.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, declarations: [ButtonDir, MyComponent] }); MyMod.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, decorators: [{ type: NgModule, args: [{ declarations: [ButtonDir, MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings_mixed.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class ButtonDir { al: any; static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDir, "button", never, { "al": { "alias": "aria-label"; "requir
{ "end_byte": 21294, "start_byte": 13850, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js_21295_28629
d": false; }; }, {}, never, never, false, never>; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDeclaration<MyMod, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyMod, [typeof ButtonDir, typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyMod>; } /**************************************************************************************************** * PARTIAL FILE: chain_bindings_with_interpolations.js ****************************************************************************************************/ import { Component, Directive, Input, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class ButtonDir { } ButtonDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ButtonDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); ButtonDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ButtonDir, isStandalone: false, selector: "button", inputs: { al: ["aria-label", "al"] }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ButtonDir, decorators: [{ type: Directive, args: [{ selector: 'button', standalone: false }] }], propDecorators: { al: [{ type: Input, args: ['aria-label'] }] } }); 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: "ng-component", ngImport: i0, template: '<button [title]="1" [id]="2" tabindex="{{0 + 3}}" aria-label="hello-{{1 + 3}}-{{2 + 3}}"></button>', isInline: true, dependencies: [{ kind: "directive", type: ButtonDir, selector: "button", inputs: ["aria-label"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: '<button [title]="1" [id]="2" tabindex="{{0 + 3}}" aria-label="hello-{{1 + 3}}-{{2 + 3}}"></button>', standalone: false }] }] }); export class MyMod { } MyMod.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyMod.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, declarations: [ButtonDir, MyComponent] }); MyMod.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, decorators: [{ type: NgModule, args: [{ declarations: [ButtonDir, MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_bindings_with_interpolations.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class ButtonDir { al: any; static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDir, "button", never, { "al": { "alias": "aria-label"; "required": false; }; }, {}, never, never, false, never>; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDeclaration<MyMod, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyMod, [typeof ButtonDir, typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyMod>; } /**************************************************************************************************** * PARTIAL FILE: chain_synthetic_bindings.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.expansionState = 'expanded'; this.myTitle = ''; } } 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: "ng-component", ngImport: i0, template: ` <button [title]="myTitle" [@expand]="expansionState" [tabindex]="1" [@fade]="'out'"></button> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: ` <button [title]="myTitle" [@expand]="expansionState" [tabindex]="1" [@fade]="'out'"></button> `, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_synthetic_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { expansionState: string; myTitle: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_ngtemplate_bindings.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.myTitle = 'hello'; this.buttonId = 'custom-id'; } } 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: "ng-component", ngImport: i0, template: '<ng-template [title]="myTitle" [id]="buttonId" [tabindex]="1"></ng-template>', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.
{ "end_byte": 28629, "start_byte": 21295, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js_28630_35918
.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: '<ng-template [title]="myTitle" [id]="buttonId" [tabindex]="1"></ng-template>', standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_ngtemplate_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings_for_multiple_elements.js ****************************************************************************************************/ import { Component, Directive, Input, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class SpanDir { } SpanDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SpanDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); SpanDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SpanDir, isStandalone: false, selector: "span", inputs: { someProp: "someProp" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SpanDir, decorators: [{ type: Directive, args: [{ selector: 'span', standalone: false }] }], propDecorators: { someProp: [{ type: Input }] } }); export class CustomEl { } CustomEl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: CustomEl, deps: [], target: i0.ɵɵFactoryTarget.Component }); CustomEl.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: CustomEl, isStandalone: false, selector: "custom-element", inputs: { prop: "prop", otherProp: "otherProp" }, ngImport: i0, template: '', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: CustomEl, decorators: [{ type: Component, args: [{ selector: 'custom-element', template: '', standalone: false }] }], propDecorators: { prop: [{ type: Input }], otherProp: [{ type: Input }] } }); export class MyComponent { constructor() { this.myTitle = 'hello'; this.buttonId = 'special-button'; } } 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: "ng-component", ngImport: i0, template: ` <button [title]="myTitle" [id]="buttonId" [tabindex]="1"></button> <span [id]="1" [title]="'hello'" [someProp]="1 + 2"></span> <custom-element [prop]="'one'" [otherProp]="2"></custom-element> `, isInline: true, dependencies: [{ kind: "component", type: CustomEl, selector: "custom-element", inputs: ["prop", "otherProp"] }, { kind: "directive", type: SpanDir, selector: "span", inputs: ["someProp"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: ` <button [title]="myTitle" [id]="buttonId" [tabindex]="1"></button> <span [id]="1" [title]="'hello'" [someProp]="1 + 2"></span> <custom-element [prop]="'one'" [otherProp]="2"></custom-element> `, standalone: false }] }] }); export class MyMod { } MyMod.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyMod.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, declarations: [MyComponent, CustomEl, SpanDir] }); MyMod.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent, CustomEl, SpanDir] }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings_for_multiple_elements.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class SpanDir { someProp: any; static ɵfac: i0.ɵɵFactoryDeclaration<SpanDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SpanDir, "span", never, { "someProp": { "alias": "someProp"; "required": false; }; }, {}, never, never, false, never>; } export declare class CustomEl { prop: any; otherProp: any; static ɵfac: i0.ɵɵFactoryDeclaration<CustomEl, never>; static ɵcmp: i0.ɵɵComponentDeclaration<CustomEl, "custom-element", never, { "prop": { "alias": "prop"; "required": false; }; "otherProp": { "alias": "otherProp"; "required": false; }; }, {}, never, never, false, never>; } export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDeclaration<MyMod, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyMod, [typeof MyComponent, typeof CustomEl, typeof SpanDir], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyMod>; } /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings_with_child_elements.js ****************************************************************************************************/ import { Component, Directive, Input, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class SpanDir { } SpanDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SpanDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); SpanDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SpanDir, isStandalone: false, selector: "span", inputs: { someProp: "someProp" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
{ "end_byte": 35918, "start_byte": 28630, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js_35919_43401
.0.0-PLACEHOLDER", ngImport: i0, type: SpanDir, decorators: [{ type: Directive, args: [{ selector: 'span', standalone: false }] }], propDecorators: { someProp: [{ type: Input }] } }); export class MyComponent { constructor() { this.myTitle = 'hello'; this.buttonId = 'special-button'; } } 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: "ng-component", ngImport: i0, template: ` <button [title]="myTitle" [id]="buttonId" [tabindex]="1"> <span [id]="1" [title]="'hello'" [someProp]="1 + 2"></span> </button>`, isInline: true, dependencies: [{ kind: "directive", type: SpanDir, selector: "span", inputs: ["someProp"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: ` <button [title]="myTitle" [id]="buttonId" [tabindex]="1"> <span [id]="1" [title]="'hello'" [someProp]="1 + 2"></span> </button>`, standalone: false }] }] }); export class MyMod { } MyMod.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyMod.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, declarations: [MyComponent, SpanDir] }); MyMod.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent, SpanDir] }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings_with_child_elements.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class SpanDir { someProp: any; static ɵfac: i0.ɵɵFactoryDeclaration<SpanDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SpanDir, "span", never, { "someProp": { "alias": "someProp"; "required": false; }; }, {}, never, never, false, never>; } export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDeclaration<MyMod, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyMod, [typeof MyComponent, typeof SpanDir], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyMod>; } /**************************************************************************************************** * PARTIAL FILE: synthetic_bindings_and_listeners_on_structural.js ****************************************************************************************************/ import { Component } 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: true, selector: "my-cmp", ngImport: i0, template: ` <button *ngIf="true" [@anim]="field" (@anim.start)="fn($event)"> </button> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-cmp', template: ` <button *ngIf="true" [@anim]="field" (@anim.start)="fn($event)"> </button> ` }] }] }); /**************************************************************************************************** * PARTIAL FILE: synthetic_bindings_and_listeners_on_structural.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { field: any; fn: any; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-cmp", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: sanitization.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.evil = 'evil'; } } 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: true, selector: "my-component", ngImport: i0, template: ` <div [innerHtml]="evil"></div> <link [href]="evil" /> <div [attr.style]="evil"></div> <img [src]="evil" /> <iframe [sandbox]="evil"></iframe> <a href="{{evil}}{{evil}}"></a> <div attr.style="{{evil}}{{evil}}"></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 [innerHtml]="evil"></div> <link [href]="evil" /> <div [attr.style]="evil"></div> <img [src]="evil" /> <iframe [sandbox]="evil"></iframe> <a href="{{evil}}{{evil}}"></a> <div attr.style="{{evil}}{{evil}}"></div> ` }] }] }); /**************************************************************************************************** * PARTIAL FILE: sanitization.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { evil: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: mixed_one_way_two_way_property_order.js ****************************************************************************************************/ import { Component, Directive, Input, Output } from '@angular/core';
{ "end_byte": 43401, "start_byte": 35919, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js_43406_46974
t * as i0 from "@angular/core"; export class Dir { } Dir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Dir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); Dir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: Dir, isStandalone: true, selector: "[dir]", inputs: { a: "a", b: "b", c: "c", d: "d" }, outputs: { aChange: "aChange", cChange: "cChange" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Dir, decorators: [{ type: Directive, args: [{ selector: '[dir]' }] }], propDecorators: { a: [{ type: Input }], aChange: [{ type: Output }], b: [{ type: Input }], c: [{ type: Input }], cChange: [{ type: Output }], d: [{ type: Input }] } }); export class App { constructor() { this.value = 'hi'; } } App.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: App, deps: [], target: i0.ɵɵFactoryTarget.Component }); App.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: App, isStandalone: true, selector: "ng-component", ngImport: i0, template: ` <div dir [(a)]="value" [b]="value" [(c)]="value" [d]="value"></div> `, isInline: true, dependencies: [{ kind: "directive", type: Dir, selector: "[dir]", inputs: ["a", "b", "c", "d"], outputs: ["aChange", "cChange"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: App, decorators: [{ type: Component, args: [{ imports: [Dir], template: ` <div dir [(a)]="value" [b]="value" [(c)]="value" [d]="value"></div> `, }] }] }); /**************************************************************************************************** * PARTIAL FILE: mixed_one_way_two_way_property_order.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class Dir { a: unknown; aChange: unknown; b: unknown; c: unknown; cChange: unknown; d: unknown; static ɵfac: i0.ɵɵFactoryDeclaration<Dir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<Dir, "[dir]", never, { "a": { "alias": "a"; "required": false; }; "b": { "alias": "b"; "required": false; }; "c": { "alias": "c"; "required": false; }; "d": { "alias": "d"; "required": false; }; }, { "aChange": "aChange"; "cChange": "cChange"; }, never, never, true, never>; } export declare class App { value: string; static ɵfac: i0.ɵɵFactoryDeclaration<App, never>; static ɵcmp: i0.ɵɵComponentDeclaration<App, "ng-component", never, {}, {}, never, never, true, never>; }
{ "end_byte": 46974, "start_byte": 43406, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/interpolation.js_1_251
… consts: [[__AttributeMarker.Bindings__, "title"]], template:function MyComponent_Template(rf, $ctx$){ if (rf & 1) { $i0$.ɵɵelement(0, "a", 0); } if (rf & 2) { $i0$.ɵɵpropertyInterpolate1("title", "Hello ", $ctx$.name, ""); } }
{ "end_byte": 251, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/interpolation.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_synthetic_bindings.js_0_186
template: function MyComponent_Template(rf, ctx) { … if (rf & 2) { $r3$.ɵɵproperty("title", ctx.myTitle)("@expand", ctx.expansionState)("tabindex", 1)("@fade", "out"); } }
{ "end_byte": 186, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_synthetic_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/interpolated_properties.js_0_1359
if (rf & 2) { i0.ɵɵpropertyInterpolateV("title", ["a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h", ctx.eight, "i", ctx.nine, "j"]); i0.ɵɵadvance(); i0.ɵɵpropertyInterpolate8("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h", ctx.eight, "i"); i0.ɵɵadvance(); i0.ɵɵpropertyInterpolate7("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h"); i0.ɵɵadvance(); i0.ɵɵpropertyInterpolate6("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g"); i0.ɵɵadvance(); i0.ɵɵpropertyInterpolate5("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f"); i0.ɵɵadvance(); i0.ɵɵpropertyInterpolate4("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e"); i0.ɵɵadvance(); i0.ɵɵpropertyInterpolate3("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d"); i0.ɵɵadvance(); i0.ɵɵpropertyInterpolate2("title", "a", ctx.one, "b", ctx.two, "c"); i0.ɵɵadvance(); i0.ɵɵpropertyInterpolate1("title", "a", ctx.one, "b"); i0.ɵɵadvance(); i0.ɵɵpropertyInterpolate("title", ctx.one); } …
{ "end_byte": 1359, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/interpolated_properties.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/bind.ts_0_273
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-app', template: '<a [title]="title"></a>', standalone: false }) export class MyComponent { title = 'Hello World'; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 273, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/bind.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_multiple_bindings_for_multiple_elements.ts_0_773
import {Component, Directive, Input, NgModule} from '@angular/core'; @Directive({ selector: 'span', standalone: false }) export class SpanDir { @Input() someProp!: any; } @Component({ selector: 'custom-element', template: '', standalone: false }) export class CustomEl { @Input() prop!: any; @Input() otherProp!: any; } @Component({ template: ` <button [title]="myTitle" [id]="buttonId" [tabindex]="1"></button> <span [id]="1" [title]="'hello'" [someProp]="1 + 2"></span> <custom-element [prop]="'one'" [otherProp]="2"></custom-element> `, standalone: false }) export class MyComponent { myTitle = 'hello'; buttonId = 'special-button'; } @NgModule({declarations: [MyComponent, CustomEl, SpanDir]}) export class MyMod { }
{ "end_byte": 773, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_multiple_bindings_for_multiple_elements.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/special_property_remapping.ts_0_299
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: ` <label [for]="forValue"></label>`, standalone: false }) export class MyComponent { forValue = 'some-input'; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 299, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/special_property_remapping.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/temporary_variables.js_0_246
template: function MyComponent_Template(rf, ctx) { … if (rf & 2) { let $tmp0$; $r3$.ɵɵproperty("title", ctx.myTitle)("id", ($tmp0$ = i0.ɵɵpipeBind1(1, 3, ctx.auth().identity())) == null ? null : $tmp0$.id)("tabindex", 1); } }
{ "end_byte": 246, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/temporary_variables.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_ngtemplate_bindings.ts_0_255
import {Component} from '@angular/core'; @Component( { template: '<ng-template [title]="myTitle" [id]="buttonId" [tabindex]="1"></ng-template>', standalone: false }) export class MyComponent { myTitle = 'hello'; buttonId = 'custom-id'; }
{ "end_byte": 255, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_ngtemplate_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_multiple_bindings_mixed.ts_0_440
import {Component, Directive, Input, NgModule} from '@angular/core'; @Directive({ selector: 'button', standalone: false }) export class ButtonDir { @Input('aria-label') al!: any; } @Component( { template: '<button [title]="1" [attr.id]="2" [tabindex]="3" aria-label="{{1 + 3}}"></button>', standalone: false }) export class MyComponent { } @NgModule({declarations: [ButtonDir, MyComponent]}) export class MyMod { }
{ "end_byte": 440, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_multiple_bindings_mixed.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_multiple_bindings.js_0_159
template: function MyComponent_Template(rf, ctx) { … if (rf & 2) { $r3$.ɵɵproperty("title", ctx.myTitle)("id", ctx.buttonId)("tabindex", 1); } }
{ "end_byte": 159, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_multiple_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/empty_binding.js_0_164
… consts: [[__AttributeMarker.Bindings__, "someProp"]], template:function MyComponent_Template(rf, $ctx$){ if (rf & 1) { $i0$.ɵɵelement(0, "a", 0); } }
{ "end_byte": 164, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/empty_binding.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/sanitization.js_0_849
template: function MyComponent_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "div", 0)(1, "link", 1)(2, "div")(3, "img", 2)(4, "iframe", 3)(5, "a", 1)(6, "div"); } if (rf & 2) { i0.ɵɵproperty("innerHtml", ctx.evil, i0.ɵɵsanitizeHtml); i0.ɵɵadvance(); i0.ɵɵproperty("href", ctx.evil, i0.ɵɵsanitizeResourceUrl); i0.ɵɵadvance(); i0.ɵɵattribute("style", ctx.evil, i0.ɵɵsanitizeStyle); i0.ɵɵadvance(); i0.ɵɵproperty("src", ctx.evil, i0.ɵɵsanitizeUrl); i0.ɵɵadvance(); i0.ɵɵproperty("sandbox", ctx.evil, i0.ɵɵvalidateIframeAttribute); i0.ɵɵadvance(); i0.ɵɵpropertyInterpolate2("href", "", ctx.evil, "", ctx.evil, "", i0.ɵɵsanitizeUrl); i0.ɵɵadvance(); i0.ɵɵattributeInterpolate2("style", "", ctx.evil, "", ctx.evil, "", i0.ɵɵsanitizeStyle); } }
{ "end_byte": 849, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/sanitization.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_multiple_bindings_with_child_elements.ts_0_536
import {Component, Directive, Input, NgModule} from '@angular/core'; @Directive({ selector: 'span', standalone: false }) export class SpanDir { @Input() someProp!: any; } @Component({ template: ` <button [title]="myTitle" [id]="buttonId" [tabindex]="1"> <span [id]="1" [title]="'hello'" [someProp]="1 + 2"></span> </button>`, standalone: false }) export class MyComponent { myTitle = 'hello'; buttonId = 'special-button'; } @NgModule({declarations: [MyComponent, SpanDir]}) export class MyMod { }
{ "end_byte": 536, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_multiple_bindings_with_child_elements.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/synthetic_bindings_and_listeners_on_structural.js_0_768
function MyComponent_button_0_Template(rf, ctx) { if (rf & 1) { const $_r1$ = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "button"); i0.ɵɵlistener("@anim.start", function MyComponent_button_0_Template_button_animation_anim_start_0_listener($event) { i0.ɵɵrestoreView($_r1$); const $ctx_r1$ = i0.ɵɵnextContext(); return i0.ɵɵresetView($ctx_r1$.fn($event)); }); i0.ɵɵelementEnd(); } if (rf & 2) { const $ctx_r2$ = i0.ɵɵnextContext(); i0.ɵɵproperty("@anim", $ctx_r2$.field); } } … consts: [[__AttributeMarker.Template__, "ngIf"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, MyComponent_button_0_Template, 1, 1, "button", 0); } if (rf & 2) { i0.ɵɵproperty("ngIf", true); } }
{ "end_byte": 768, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/synthetic_bindings_and_listeners_on_structural.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/interpolation.ts_0_288
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: ` <a title="Hello {{name}}"></a>`, standalone: false }) export class MyComponent { name = 'World'; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 288, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/interpolation.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_synthetic_bindings.ts_0_301
import {Component} from '@angular/core'; @Component({ template: ` <button [title]="myTitle" [@expand]="expansionState" [tabindex]="1" [@fade]="'out'"></button> `, standalone: false }) export class MyComponent { expansionState = 'expanded'; myTitle = ''; }
{ "end_byte": 301, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_synthetic_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/interpolated_properties.ts_0_1041
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-app', template: ` <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i{{nine}}j"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f"></div> <div title="a{{one}}b{{two}}c{{three}}d{{four}}e"></div> <div title="a{{one}}b{{two}}c{{three}}d"></div> <div title="a{{one}}b{{two}}c"></div> <div title="a{{one}}b"></div> <div title="{{one}}"></div> `, standalone: false }) export class MyComponent { name = 'John Doe'; one!: any; two!: any; three!: any; four!: any; five!: any; six!: any; seven!: any; eight!: any; nine!: any; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 1041, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/interpolated_properties.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/bind.js_0_222
consts: [[__AttributeMarker.Bindings__, "title"]], template:function MyComponent_Template(rf, $ctx$){ if (rf & 1) { $i0$.ɵɵelement(0, "a", 0); } if (rf & 2) { $i0$.ɵɵproperty("title", $ctx$.title); } }
{ "end_byte": 222, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/bind.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_bindings_with_interpolations.ts_0_453
import {Component, Directive, Input, NgModule} from '@angular/core'; @Directive({ selector: 'button', standalone: false }) export class ButtonDir { @Input('aria-label') al!: any; } @Component({ template: '<button [title]="1" [id]="2" tabindex="{{0 + 3}}" aria-label="hello-{{1 + 3}}-{{2 + 3}}"></button>', standalone: false }) export class MyComponent { } @NgModule({declarations: [ButtonDir, MyComponent]}) export class MyMod { }
{ "end_byte": 453, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_bindings_with_interpolations.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/mixed_one_way_two_way_property_order.ts_0_439
import {Component, Directive, Input, Output} from '@angular/core'; @Directive({selector: '[dir]'}) export class Dir { @Input() a: unknown; @Output() aChange: unknown; @Input() b: unknown; @Input() c: unknown; @Output() cChange: unknown; @Input() d: unknown; } @Component({ imports: [Dir], template: ` <div dir [(a)]="value" [b]="value" [(c)]="value" [d]="value"></div> `, }) export class App { value = 'hi'; }
{ "end_byte": 439, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/mixed_one_way_two_way_property_order.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/text_bindings/GOLDEN_PARTIAL.js_0_2685
/**************************************************************************************************** * PARTIAL FILE: interpolation.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.name = 'World'; } } 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>Hello {{ name }}</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>Hello {{ name }}</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: interpolation.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { 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], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; }
{ "end_byte": 2685, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/text_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/text_bindings/interpolation.js_1_261
template:function MyComponent_Template(rf, $ctx$){ if (rf & 1) { $i0$.ɵɵelementStart(0, "div"); $i0$.ɵɵtext(1); $i0$.ɵɵelementEnd(); } if (rf & 2) { $r3$.ɵɵadvance(); $i0$.ɵɵtextInterpolate1("Hello ", $ctx$.name, ""); } }
{ "end_byte": 261, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/text_bindings/interpolation.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/text_bindings/interpolation.ts_0_285
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: ` <div>Hello {{ name }}</div>`, standalone: false }) export class MyComponent { name = 'World'; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 285, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/text_bindings/interpolation.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/property_bindings_and_listeners.ts_0_337
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-app', template: ` <div ngNonBindable> <div [id]="my-id" (click)="onclick"></div> </div> `, standalone: false }) export class MyComponent { name = 'John Doe'; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 337, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/property_bindings_and_listeners.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/local_ref_on_host.pipeline.js_0_510
consts: [["myRef", ""], ["id", "my-id"]], template:function MyComponent_Template(rf, $ctx$){ if (rf & 1) { $i0$.ɵɵelementStart(0, "b", 1, 0); $i0$.ɵɵdisableBindings(); $i0$.ɵɵelementStart(2, "i"); $i0$.ɵɵtext(3, "Hello {{ name }}!"); $i0$.ɵɵelementEnd(); $i0$.ɵɵenableBindings(); $i0$.ɵɵelementEnd(); $i0$.ɵɵtext(4); } if (rf & 2) { const $_r0$ = $i0$.ɵɵreference(1); $r3$.ɵɵadvance(4); $i0$.ɵɵtextInterpolate1(" ", $_r0$.id, " "); } }
{ "end_byte": 510, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/local_ref_on_host.pipeline.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/local_ref_on_host.ts_0_350
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-app', template: ` <b ngNonBindable #myRef id="my-id"> <i>Hello {{ name }}!</i> </b> {{ myRef.id }} `, standalone: false }) export class MyComponent { name = 'John Doe'; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 350, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/local_ref_on_host.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/no_child_elements.js_1_106
template:function MyComponent_Template(rf, $ctx$){ if (rf & 1) { $i0$.ɵɵelement(0, "div"); } }
{ "end_byte": 106, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/no_child_elements.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/GOLDEN_PARTIAL.js_0_7301
/**************************************************************************************************** * PARTIAL FILE: local_ref_on_host.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.name = 'John Doe'; } } 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-app", ngImport: i0, template: ` <b ngNonBindable #myRef id="my-id"> <i>Hello {{ name }}!</i> </b> {{ myRef.id }} `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-app', template: ` <b ngNonBindable #myRef id="my-id"> <i>Hello {{ name }}!</i> </b> {{ myRef.id }} `, 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_ref_on_host.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { name: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-app", 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_ref_on_nested.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.name = 'John Doe'; } } 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-app", ngImport: i0, template: ` <div ngNonBindable> <input value="one" #myInput> {{ myInput.value }} </div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-app', template: ` <div ngNonBindable> <input value="one" #myInput> {{ myInput.value }} </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_ref_on_nested.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { name: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-app", 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: property_bindings_and_listeners.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.name = 'John Doe'; } } 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-app", ngImport: i0, template: ` <div ngNonBindable> <div [id]="my-id" (click)="onclick"></div> </div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-app', template: ` <div ngNonBindable> <div [id]="my-id" (click)="onclick"></div> </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",
{ "end_byte": 7301, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/GOLDEN_PARTIAL.js_7302_11108
gImport: 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: property_bindings_and_listeners.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { name: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-app", 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: no_child_elements.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.name = 'John Doe'; } } 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-app", ngImport: i0, template: ` <div ngNonBindable></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-app', template: ` <div ngNonBindable></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: no_child_elements.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { name: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-app", 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>; }
{ "end_byte": 11108, "start_byte": 7302, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/local_ref_on_nested.js_0_324
consts: [["value", "one", "#myInput", ""]], template:function MyComponent_Template(rf, $ctx$){ if (rf & 1) { $i0$.ɵɵelementStart(0, "div"); $i0$.ɵɵdisableBindings(); $i0$.ɵɵelement(1, "input", 0); $i0$.ɵɵtext(2, " {{ myInput.value }} "); $i0$.ɵɵenableBindings(); $i0$.ɵɵelementEnd(); }
{ "end_byte": 324, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/local_ref_on_nested.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/property_bindings_and_listeners.js_0_282
consts: [["[id]", "my-id", "(click)", "onclick"]], template:function MyComponent_Template(rf, $ctx$){ if (rf & 1) { $i0$.ɵɵelementStart(0, "div"); $i0$.ɵɵdisableBindings(); $i0$.ɵɵelement(1, "div", 0); $i0$.ɵɵenableBindings(); $i0$.ɵɵelementEnd(); }
{ "end_byte": 282, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/property_bindings_and_listeners.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/local_ref_on_nested.ts_0_341
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-app', template: ` <div ngNonBindable> <input value="one" #myInput> {{ myInput.value }} </div> `, standalone: false }) export class MyComponent { name = 'John Doe'; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 341, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/local_ref_on_nested.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/no_child_elements.ts_0_283
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-app', template: ` <div ngNonBindable></div> `, standalone: false }) export class MyComponent { name = 'John Doe'; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 283, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/no_child_elements.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/exclude_bindings_from_consts.ts_0_438
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-app', template: `<a target="_blank" [title]="1" [attr.foo]="'one'" (customEvent)="doThings()" [attr.bar]="'two'" [id]="2" aria-label="link" [attr.baz]="three"></a>`, standalone: false }) export class MyComponent { doThings() {} three!: any; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 438, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/exclude_bindings_from_consts.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings_with_child_elements.js_0_255
template: function MyComponent_Template(rf, ctx) { … if (rf & 2) { $r3$.ɵɵattribute("title", ctx.myTitle)("id", ctx.buttonId)("tabindex", 1); $r3$.ɵɵadvance(); $r3$.ɵɵattribute("id", 1)("title", "hello")("some-attr", 1 + 2); } }
{ "end_byte": 255, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings_with_child_elements.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings_for_multiple_elements.js_0_345
template: function MyComponent_Template(rf, ctx) { … if (rf & 2) { $r3$.ɵɵattribute("title", ctx.myTitle)("id", ctx.buttonId)("tabindex", 1); $r3$.ɵɵadvance(); $r3$.ɵɵattribute("id", 1)("title", "hello")("some-attr", 1 + 2); $r3$.ɵɵadvance(); $r3$.ɵɵattribute("some-attr", "one")("some-other-attr", 2); } }
{ "end_byte": 345, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings_for_multiple_elements.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/duplicate_bindings.js_0_954
consts: [["aria-label", "hello", "aria-label", "hi"], [2, "height", "0"], [1, "cls2"], [3, "tabindex"], [3, "click"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "div", 0); i0.ɵɵelementStart(1, "div", 1); i0.ɵɵelement(2, "div", 2)(3, "div")(4, "div", 3)(5, "div")(6, "div"); i0.ɵɵelementStart(7, "div", 4); i0.ɵɵlistener("click", function MyComponent_Template_div_click_7_listener($event) { return $event.stopPropagation(); })("click", function MyComponent_Template_div_click_7_listener($event) { return $event.preventDefault(); }); i0.ɵɵelementEnd()(); } if (rf & 2) { i0.ɵɵadvance(3); i0.ɵɵattribute("aria-label", ctx.value1)("aria-label", ctx.value2); i0.ɵɵadvance(); i0.ɵɵproperty("tabindex", ctx.value1)("tabindex", ctx.value2); i0.ɵɵadvance(); i0.ɵɵclassMap(ctx.value2); i0.ɵɵadvance(); i0.ɵɵstyleMap(ctx.value2); } }
{ "end_byte": 954, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/duplicate_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings_mixed.js_0_234
template: function MyComponent_Template(rf, ctx) { … if (rf & 2) { $r3$.ɵɵattributeInterpolate1("aria-label", "prefix-", 1 + 3, ""); $r3$.ɵɵproperty("id", 2); $r3$.ɵɵattribute("title", 1)("tabindex", 3); } }
{ "end_byte": 234, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings_mixed.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings.ts_0_270
import {Component} from '@angular/core'; @Component({ template: ` <button [attr.title]="myTitle" attr.id="{{buttonId}}" [attr.tabindex]="1"></button> `, standalone: false }) export class MyComponent { myTitle = 'hello'; buttonId = 'special-button'; }
{ "end_byte": 270, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_single_interpolation.ts_0_274
import {Component} from '@angular/core'; @Component({ template: ` <button attr.title="{{myTitle}}" attr.id="{{buttonId}}" attr.tabindex="{{1}}"></button> `, standalone: false }) export class MyComponent { myTitle = 'hello'; buttonId = 'special-button'; }
{ "end_byte": 274, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_single_interpolation.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_bindings_with_interpolations.js_0_277
template: function MyComponent_Template(rf, ctx) { … if (rf & 2) { $r3$.ɵɵattributeInterpolate1("tabindex", "prefix-", 0 + 3, ""); $r3$.ɵɵattributeInterpolate2("aria-label", "hello-", 1 + 3, "-", 2 + 3, ""); $r3$.ɵɵattribute("title", 1)("id", 2); } }
{ "end_byte": 277, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_bindings_with_interpolations.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/exclude_bindings_from_consts_template.pipeline.js_1_119
consts: [["target", "_blank", "aria-label", "link", __AttributeMarker.Bindings__, "customEvent", "title", "id"]], …
{ "end_byte": 119, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/exclude_bindings_from_consts_template.pipeline.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js_0_8548
/**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.myTitle = 'hello'; this.buttonId = 'special-button'; } } 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: "ng-component", ngImport: i0, template: ` <button [attr.title]="myTitle" attr.id="{{buttonId}}" [attr.tabindex]="1"></button> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: ` <button [attr.title]="myTitle" attr.id="{{buttonId}}" [attr.tabindex]="1"></button> `, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_multiple_single_interpolation.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.myTitle = 'hello'; this.buttonId = 'special-button'; } } 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: "ng-component", ngImport: i0, template: ` <button attr.title="{{myTitle}}" attr.id="{{buttonId}}" attr.tabindex="{{1}}"></button> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: ` <button attr.title="{{myTitle}}" attr.id="{{buttonId}}" attr.tabindex="{{1}}"></button> `, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_multiple_single_interpolation.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings_mixed.js ****************************************************************************************************/ import { Component } 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: "ng-component", ngImport: i0, template: ` <button [attr.title]="1" [id]="2" [attr.tabindex]="3" attr.aria-label="prefix-{{1 + 3}}"> </button> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: ` <button [attr.title]="1" [id]="2" [attr.tabindex]="3" attr.aria-label="prefix-{{1 + 3}}"> </button> `, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings_mixed.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_bindings_with_interpolations.js ****************************************************************************************************/ import { Component } 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: "ng-component", ngImport: i0, template: ` <button [attr.title]="1" [attr.id]="2" attr.tabindex="prefix-{{0 + 3}}" attr.aria-label="hello-{{1 + 3}}-{{2 + 3}}"></button>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: ` <button [attr.title]="1" [attr.id]="2" attr.tabindex="prefix-{{0 + 3}}" attr.aria-label="hello-{{1 + 3}}-{{2 + 3}}"></button>`, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_bindings_with_interpolations.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings_for_multiple_elements.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class CustomEl { } CustomEl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: CustomEl, deps: [], target: i0.ɵɵFactoryTarget.Component }); CustomEl.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: CustomEl, isStandalone: false, selector: "custom-element", ngImport: i0, template: '', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: CustomEl, decorators: [{ type: Component, args: [{ selector: 'custom-element', template: '', standalone: false }] }] }); export class MyComponent { constructor() { this.myTitle = 'he
{ "end_byte": 8548, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js_8549_15623
lo'; this.buttonId = 'special-button'; } } 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: "ng-component", ngImport: i0, template: ` <button [attr.title]="myTitle" [attr.id]="buttonId" [attr.tabindex]="1"></button> <span [attr.id]="1" [attr.title]="'hello'" [attr.some-attr]="1 + 2"></span> <custom-element [attr.some-attr]="'one'" [attr.some-other-attr]="2"></custom-element> `, isInline: true, dependencies: [{ kind: "component", type: CustomEl, selector: "custom-element" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: ` <button [attr.title]="myTitle" [attr.id]="buttonId" [attr.tabindex]="1"></button> <span [attr.id]="1" [attr.title]="'hello'" [attr.some-attr]="1 + 2"></span> <custom-element [attr.some-attr]="'one'" [attr.some-other-attr]="2"></custom-element> `, standalone: false }] }] }); export class MyMod { } MyMod.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyMod.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, declarations: [MyComponent, CustomEl] }); MyMod.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent, CustomEl] }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings_for_multiple_elements.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class CustomEl { static ɵfac: i0.ɵɵFactoryDeclaration<CustomEl, never>; static ɵcmp: i0.ɵɵComponentDeclaration<CustomEl, "custom-element", never, {}, {}, never, never, false, never>; } export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDeclaration<MyMod, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyMod, [typeof MyComponent, typeof CustomEl], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyMod>; } /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings_with_child_elements.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.myTitle = 'hello'; this.buttonId = 'special-button'; } } 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: "ng-component", ngImport: i0, template: ` <button [attr.title]="myTitle" [attr.id]="buttonId" [attr.tabindex]="1"> <span [attr.id]="1" [attr.title]="'hello'" [attr.some-attr]="1 + 2"></span> </button>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: ` <button [attr.title]="myTitle" [attr.id]="buttonId" [attr.tabindex]="1"> <span [attr.id]="1" [attr.title]="'hello'" [attr.some-attr]="1 + 2"></span> </button>`, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_multiple_bindings_with_child_elements.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: exclude_bindings_from_consts.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { doThings() { } } 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-app", ngImport: i0, template: `<a target="_blank" [title]="1" [attr.foo]="'one'" (customEvent)="doThings()" [attr.bar]="'two'" [id]="2" aria-label="link" [attr.baz]="three"></a>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-app', template: `<a target="_blank" [title]="1" [attr.foo]="'one'" (customEvent)="doThings()" [attr.bar]="'two'" [id]="2" aria-label="link" [attr.baz]="three"></a>`, 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.ɵɵngDeclareClassMetada
{ "end_byte": 15623, "start_byte": 8549, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js_15624_22160
a({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: exclude_bindings_from_consts.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { doThings(): void; three: any; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-app", 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: interpolated_attributes.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.name = 'John Doe'; } } 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-app", ngImport: i0, template: ` <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i{{nine}}j"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d"></div> <div attr.title="a{{one}}b{{two}}c"></div> <div attr.title="a{{one}}b"></div> <div attr.title="{{one}}"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-app', template: ` <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i{{nine}}j"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d"></div> <div attr.title="a{{one}}b{{two}}c"></div> <div attr.title="a{{one}}b"></div> <div attr.title="{{one}}"></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: interpolated_attributes.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { name: string; one: any; two: any; three: any; four: any; five: any; six: any; seven: any; eight: any; nine: any; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-app", 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: duplicate_bindings.js ****************************************************************************************************/ import { Component } 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: true, selector: "my-component", ngImport: i0, template: ` <div aria-label="hello" aria-label="hi"></div> <div style="width: 0" style="height: 0"> <div class="cls1" class="cls2"></div> <div [attr.aria-label]="value1" [attr.aria-label]="value2"></div> <div [tabindex]="value1" [tabindex]="value2"></div> <div [class]="value1" [class]="value2"></div> <div [style]="value1" [style]="value2"></div> <div (click)="$event.stopPropagation()" (click)="$event.preventDefault()"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-com
{ "end_byte": 22160, "start_byte": 15624, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js_22161_23446
onent', template: ` <div aria-label="hello" aria-label="hi"></div> <div style="width: 0" style="height: 0"> <div class="cls1" class="cls2"></div> <div [attr.aria-label]="value1" [attr.aria-label]="value2"></div> <div [tabindex]="value1" [tabindex]="value2"></div> <div [class]="value1" [class]="value2"></div> <div [style]="value1" [style]="value2"></div> <div (click)="$event.stopPropagation()" (click)="$event.preventDefault()"></div> `, }] }] }); /**************************************************************************************************** * PARTIAL FILE: duplicate_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { value1: any; value2: any; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, true, never>; }
{ "end_byte": 23446, "start_byte": 22161, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/interpolated_attributes.js_0_1358
if (rf & 2) { i0.ɵɵattributeInterpolateV("title", ["a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h", ctx.eight, "i", ctx.nine, "j"]); i0.ɵɵadvance(); i0.ɵɵattributeInterpolate8("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h", ctx.eight, "i"); i0.ɵɵadvance(); i0.ɵɵattributeInterpolate7("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h"); i0.ɵɵadvance(); i0.ɵɵattributeInterpolate6("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g"); i0.ɵɵadvance(); i0.ɵɵattributeInterpolate5("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f"); i0.ɵɵadvance(); i0.ɵɵattributeInterpolate4("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e"); i0.ɵɵadvance(); i0.ɵɵattributeInterpolate3("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d"); i0.ɵɵadvance(); i0.ɵɵattributeInterpolate2("title", "a", ctx.one, "b", ctx.two, "c"); i0.ɵɵadvance(); i0.ɵɵattributeInterpolate1("title", "a", ctx.one, "b"); i0.ɵɵadvance(); i0.ɵɵattribute("title", ctx.one); } …
{ "end_byte": 1358, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/interpolated_attributes.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings_for_multiple_elements.ts_0_634
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'custom-element', template: '', standalone: false }) export class CustomEl { } @Component({ template: ` <button [attr.title]="myTitle" [attr.id]="buttonId" [attr.tabindex]="1"></button> <span [attr.id]="1" [attr.title]="'hello'" [attr.some-attr]="1 + 2"></span> <custom-element [attr.some-attr]="'one'" [attr.some-other-attr]="2"></custom-element> `, standalone: false }) export class MyComponent { myTitle = 'hello'; buttonId = 'special-button'; } @NgModule({declarations: [MyComponent, CustomEl]}) export class MyMod { }
{ "end_byte": 634, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings_for_multiple_elements.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/duplicate_bindings.ts_0_613
import {Component} from '@angular/core'; @Component({ selector: 'my-component', template: ` <div aria-label="hello" aria-label="hi"></div> <div style="width: 0" style="height: 0"> <div class="cls1" class="cls2"></div> <div [attr.aria-label]="value1" [attr.aria-label]="value2"></div> <div [tabindex]="value1" [tabindex]="value2"></div> <div [class]="value1" [class]="value2"></div> <div [style]="value1" [style]="value2"></div> <div (click)="$event.stopPropagation()" (click)="$event.preventDefault()"></div> `, }) export class MyComponent { value1: any; value2: any; }
{ "end_byte": 613, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/duplicate_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings_mixed.ts_0_238
import {Component} from '@angular/core'; @Component({ template: ` <button [attr.title]="1" [id]="2" [attr.tabindex]="3" attr.aria-label="prefix-{{1 + 3}}"> </button> `, standalone: false }) export class MyComponent { }
{ "end_byte": 238, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings_mixed.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings.js_0_160
template: function MyComponent_Template(rf, ctx) { … if (rf & 2) { $r3$.ɵɵattribute("title", ctx.myTitle)("id", ctx.buttonId)("tabindex", 1); } }
{ "end_byte": 160, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_single_interpolation.js_0_160
template: function MyComponent_Template(rf, ctx) { … if (rf & 2) { $r3$.ɵɵattribute("title", ctx.myTitle)("id", ctx.buttonId)("tabindex", 1); } }
{ "end_byte": 160, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_single_interpolation.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings_with_child_elements.ts_0_352
import {Component} from '@angular/core'; @Component({ template: ` <button [attr.title]="myTitle" [attr.id]="buttonId" [attr.tabindex]="1"> <span [attr.id]="1" [attr.title]="'hello'" [attr.some-attr]="1 + 2"></span> </button>`, standalone: false }) export class MyComponent { myTitle = 'hello'; buttonId = 'special-button'; }
{ "end_byte": 352, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_multiple_bindings_with_child_elements.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/interpolated_attributes.ts_0_1091
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-app', template: ` <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i{{nine}}j"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e"></div> <div attr.title="a{{one}}b{{two}}c{{three}}d"></div> <div attr.title="a{{one}}b{{two}}c"></div> <div attr.title="a{{one}}b"></div> <div attr.title="{{one}}"></div> `, standalone: false }) export class MyComponent { name = 'John Doe'; one!: any; two!: any; three!: any; four!: any; five!: any; six!: any; seven!: any; eight!: any; nine!: any; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 1091, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/interpolated_attributes.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_bindings_with_interpolations.ts_0_281
import {Component} from '@angular/core'; @Component({ template: ` <button [attr.title]="1" [attr.id]="2" attr.tabindex="prefix-{{0 + 3}}" attr.aria-label="hello-{{1 + 3}}-{{2 + 3}}"></button>`, standalone: false }) export class MyComponent { }
{ "end_byte": 281, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/chain_bindings_with_interpolations.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/template_chained_listeners_template.js_0_440
… consts: [[__AttributeMarker.Bindings__, "click", "change"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 0, 0, "ng-template", 0); $r3$.ɵɵlistener("click", function MyComponent_Template_ng_template_click_0_listener() { return ctx.click(); })("change", function MyComponent_Template_ng_template_change_0_listener() { return ctx.change(); }); } }
{ "end_byte": 440, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/template_chained_listeners_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/template_chained_listeners.ts_0_300
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: `<ng-template (click)="click()" (change)="change()"></ng-template>`, standalone: false }) export class MyComponent { } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 300, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/template_chained_listeners.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_host_explicit_access.ts_0_183
import {Directive} from '@angular/core'; @Directive({ host: { '(click)': 'c(this.$event)', }, standalone: false }) class Dir { $event = {}; c(value: {}) {} }
{ "end_byte": 183, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_host_explicit_access.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_listener_template.js_0_317
… consts: [[__AttributeMarker.Bindings__, "click"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "div", 0); $r3$.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener() { return ctx.onClick(); }); $r3$.ɵɵelementEnd(); } }
{ "end_byte": 317, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_listener_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/component_listener_template.js_0_335
… consts: [[__AttributeMarker.Bindings__, "click"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "my-app", 0); $r3$.ɵɵlistener("click", function MyComponent_Template_my_app_click_0_listener($event) { return ctx.onClick($event); }); $r3$.ɵɵelementEnd(); } }
{ "end_byte": 335, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/component_listener_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/shared_snapshot_listeners_template.js_0_1051
function MyComponent_div_0_Template(rf, ctx) { if (rf & 1) { const $s$ = $r3$.ɵɵgetCurrentView(); $r3$.ɵɵelementStart(0, "div")(1, "div", 1); $r3$.ɵɵlistener("click", function MyComponent_div_0_Template_div_click_1_listener() { $r3$.ɵɵrestoreView($s$); const $comp$ = $r3$.ɵɵnextContext(); return $i0$.ɵɵresetView($comp$.onClick($comp$.foo)); }); $r3$.ɵɵelementEnd(); $r3$.ɵɵelementStart(2, "button", 1); $r3$.ɵɵlistener("click", function MyComponent_div_0_Template_button_click_2_listener() { $r3$.ɵɵrestoreView($s$); const $comp2$ = $r3$.ɵɵnextContext(); return $i0$.ɵɵresetView($comp2$.onClick2($comp2$.bar)); }); $r3$.ɵɵelementEnd()(); } } // ... consts: [[__AttributeMarker.Template__, "ngIf"], [__AttributeMarker.Bindings__, "click"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtemplate(0, MyComponent_div_0_Template, 3, 0, "div", 0); } if (rf & 2) { $i0$.ɵɵproperty("ngIf", ctx.showing); } }
{ "end_byte": 1051, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/shared_snapshot_listeners_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/mixed_one_way_two_way_listener_order.ts_0_462
import {Component, Directive, Input, Output} from '@angular/core'; @Directive({selector: '[dir]'}) export class Dir { @Input() a: unknown; @Output() aChange: unknown; @Output() b: unknown; @Input() c: unknown; @Output() cChange: unknown; @Output() d: unknown; } @Component({ imports: [Dir], template: ` <div dir [(a)]="value" (b)="noop()" [(c)]="value" (d)="noop()"></div> `, }) export class App { value = 'hi'; noop = () => {}; }
{ "end_byte": 462, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/mixed_one_way_two_way_listener_order.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_host_listener_host_bindings.js_0_302
… hostBindings: function MyComponent_HostBindings(rf, ctx) { if (rf & 1) { i0.ɵɵlistener("mousedown", function MyComponent_mousedown_HostBindingHandler() { return ctx.mousedown(); })("click", function MyComponent_click_HostBindingHandler() { return ctx.click(); }); } }
{ "end_byte": 302, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_host_listener_host_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_listener.ts_0_174
import {Component} from '@angular/core'; @Component({ template: `<div (click)="onClick();"></div>`, standalone: false }) export class MyComponent { onClick() {} }
{ "end_byte": 174, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_listener.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/element_listener_template.js_0_343
… consts: [[__AttributeMarker.Bindings__, "click"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "div", 0); $r3$.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener($event) { ctx.onClick($event); return 1 == 1; }); $r3$.ɵɵelementEnd(); } }
{ "end_byte": 343, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/element_listener_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_listener_implicit_meaning_template.js_0_109
… i0.ɵɵlistener("click", function Comp_Template_div_click_0_listener($event) { return ctx.c($event); });
{ "end_byte": 109, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_listener_implicit_meaning_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/nested_two_way_template.js_0_645
function TestCmp_ng_template_1_Template(rf, ctx) { if (rf & 1) { const $_r2$ = $r3$.ɵɵgetCurrentView(); $r3$.ɵɵelementStart(0, "input", 0); $r3$.ɵɵtwoWayListener("ngModelChange", function TestCmp_ng_template_1_Template_input_ngModelChange_0_listener($event) { $r3$.ɵɵrestoreView($_r2$); const $ctx_r1$ = $r3$.ɵɵnextContext(); $r3$.ɵɵtwoWayBindingSet($ctx_r1$.name, $event) || ($ctx_r1$.name = $event); return $r3$.ɵɵresetView($event); }); $r3$.ɵɵelementEnd(); } if (rf & 2) { const $ctx_r0$ = $r3$.ɵɵnextContext(); $r3$.ɵɵtwoWayProperty("ngModel", $ctx_r0$.name); } }
{ "end_byte": 645, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/nested_two_way_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/local_ref_before_listener_factory.js_0_122
MyComponent.ɵfac = function MyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MyComponent)(); };
{ "end_byte": 122, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/local_ref_before_listener_factory.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_host_explicit_access_host_bindings.js_0_101
… i0.ɵɵlistener("click", function Dir_click_HostBindingHandler() { return ctx.c(ctx.$event); });
{ "end_byte": 101, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_host_explicit_access_host_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_listener_implicit_meaning.ts_0_163
import {Component} from '@angular/core'; @Component({ template: '<div (click)="c($event)"></div>', standalone: false }) class Comp { c(event: any) {} }
{ "end_byte": 163, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_listener_implicit_meaning.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_host_listener.ts_0_257
import {Component, HostListener} from '@angular/core'; @Component({ template: '', host: { '(mousedown)': 'mousedown()', }, standalone: false }) export class MyComponent { mousedown() {} @HostListener('click') click() { } }
{ "end_byte": 257, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_host_listener.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js_0_7321
/**************************************************************************************************** * PARTIAL FILE: element_listener.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { onClick(event) { } } 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 (click)="onClick($event); 1 == 1"></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 (click)="onClick($event); 1 == 1"></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: element_listener.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { onClick(event: any): void; 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: component_listener.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; 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: `<div>My App</div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, decorators: [{ type: Component, args: [{ selector: 'my-app', template: `<div>My App</div>`, standalone: false }] }] }); export class MyComponent { onClick(event) { } } 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: `<my-app (click)="onClick($event);"></my-app>`, isInline: true, dependencies: [{ kind: "component", type: MyApp, selector: "my-app" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: `<my-app (click)="onClick($event);"></my-app>`, 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, 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: [MyComponent, MyApp] }] }] }); /**************************************************************************************************** * PARTIAL FILE: component_listener.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; 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 MyComponent { onClick(event: any): void; 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 MyApp], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: shared_snapshot_listeners.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { onClick(name) { } onClick2(name) { } } 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 *ngIf="showing"> <div (click)="onClick(foo)"></div> <button (click)="onClick2(bar)"></button> </div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, typ
{ "end_byte": 7321, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js_7322_15097
: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: ` <div *ngIf="showing"> <div (click)="onClick(foo)"></div> <button (click)="onClick2(bar)"></button> </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: shared_snapshot_listeners.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { onClick(name: any): void; onClick2(name: any): void; 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_ref_before_listener.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { onClick(v) { } } 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: ` <button (click)="onClick(user.value)">Save</button> <input #user> `, 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: ` <button (click)="onClick(user.value)">Save</button> <input #user> `, 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_ref_before_listener.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { onClick(v: any): void; 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: same_element_chained_listeners.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { click() { } change() { } } 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 (click)="click()" (change)="change()"></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 (click)="click()" (change)="change()"></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: same_element_chained_listeners.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { click(): void; change(): void; 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: cross_element_chained_listeners.js ****************************************************************************************************/ import { Component, EventEmitter, NgModule, Output } from '@angular/core'; import * as i0 from "@angular/core"; export class SomeComp { constructor() { this.update = new EventEmitter();
{ "end_byte": 15097, "start_byte": 7322, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js_15098_22463
this.delete = new EventEmitter(); } } SomeComp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeComp, deps: [], target: i0.ɵɵFactoryTarget.Component }); SomeComp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SomeComp, isStandalone: false, selector: "some-comp", outputs: { update: "update", delete: "delete" }, ngImport: i0, template: '', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeComp, decorators: [{ type: Component, args: [{ selector: 'some-comp', template: '', standalone: false }] }], propDecorators: { update: [{ type: Output }], delete: [{ type: Output }] } }); export class MyComponent { click() { } change() { } delete() { } update() { } } 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 (click)="click()" (change)="change()"></div> <some-comp (update)="update()" (delete)="delete()"></some-comp> `, isInline: true, dependencies: [{ kind: "component", type: SomeComp, selector: "some-comp", outputs: ["update", "delete"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: ` <div (click)="click()" (change)="change()"></div> <some-comp (update)="update()" (delete)="delete()"></some-comp> `, 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, SomeComp] }); 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, SomeComp] }] }] }); /**************************************************************************************************** * PARTIAL FILE: cross_element_chained_listeners.d.ts ****************************************************************************************************/ import { EventEmitter } from '@angular/core'; import * as i0 from "@angular/core"; export declare class SomeComp { update: EventEmitter<any>; delete: EventEmitter<any>; static ɵfac: i0.ɵɵFactoryDeclaration<SomeComp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SomeComp, "some-comp", never, {}, { "update": "update"; "delete": "delete"; }, never, never, false, never>; } export declare class MyComponent { click(): void; change(): void; delete(): void; update(): void; 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 SomeComp], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: template_chained_listeners.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: `<ng-template (click)="click()" (change)="change()"></ng-template>`, 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: `<ng-template (click)="click()" (change)="change()"></ng-template>`, 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: template_chained_listeners.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: no_event_arg_listener.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { onClick() { } } 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, is
{ "end_byte": 22463, "start_byte": 15098, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js_22464_31198
tandalone: false, selector: "ng-component", ngImport: i0, template: `<div (click)="onClick();"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: `<div (click)="onClick();"></div>`, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: no_event_arg_listener.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { onClick(): void; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: no_event_arg_host_listener.js ****************************************************************************************************/ import { Component, HostListener } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { mousedown() { } click() { } } 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: "ng-component", host: { listeners: { "mousedown": "mousedown()", "click": "click()" } }, ngImport: i0, template: '', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: '', host: { '(mousedown)': 'mousedown()', }, standalone: false }] }], propDecorators: { click: [{ type: HostListener, args: ['click'] }] } }); /**************************************************************************************************** * PARTIAL FILE: no_event_arg_host_listener.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { mousedown(): void; click(): void; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: has_event_arg_host_listener.js ****************************************************************************************************/ import { Directive, HostListener } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { click(target) { } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); MyComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: true, host: { listeners: { "click": "click($event.target)" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Directive }], propDecorators: { click: [{ type: HostListener, args: ['click', ['$event.target']] }] } }); /**************************************************************************************************** * PARTIAL FILE: has_event_arg_host_listener.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { click(target: any): void; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MyComponent, never, never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: event_arg_listener_implicit_meaning.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; class Comp { c(event) { } } Comp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Comp, deps: [], target: i0.ɵɵFactoryTarget.Component }); Comp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: Comp, isStandalone: false, selector: "ng-component", ngImport: i0, template: '<div (click)="c($event)"></div>', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Comp, decorators: [{ type: Component, args: [{ template: '<div (click)="c($event)"></div>', standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: event_arg_listener_implicit_meaning.d.ts ****************************************************************************************************/ export {}; /**************************************************************************************************** * PARTIAL FILE: event_explicit_access.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; class Comp { constructor() { this.$event = {}; } c(value) { } } Comp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Comp, deps: [], target: i0.ɵɵFactoryTarget.Component }); Comp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: Comp, isStandalone: false, selector: "ng-component", ngImport: i0, template: '<div (click)="c(this.$event)"></div>', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Comp, decorators: [{ type: Component, args: [{ template: '<div (click)="c(this.$event)"></div>', standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: event_explicit_access.d.ts ****************************************************************************************************/ export {}; /**************************************************************************************************** * PARTIAL FILE: event_in_property_binding.js ****************************************************************************************************/ import { Component, Directive, Input, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class DivDir { } DivDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DivDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); DivDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: DivDir, isStandalone: false, selector: "div", inputs: { event: "event" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DivDir, decorators: [{ type: Directive, args: [{ selector: 'div', standalone: false }] }], propDecorators: { event: [{ type: Input }] } }); class Comp { constructor() { this.$event = 1; } } Comp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Comp, deps: [], target: i0.ɵɵFactoryTarget.Component }); Comp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: Comp, isStandalone: false, selector: "ng-compone
{ "end_byte": 31198, "start_byte": 22464, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js_31199_39186
t", ngImport: i0, template: '<div [event]="$event"></div>', isInline: true, dependencies: [{ kind: "directive", type: DivDir, selector: "div", inputs: ["event"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Comp, decorators: [{ type: Component, args: [{ template: '<div [event]="$event"></div>', standalone: false }] }] }); export class MyMod { } MyMod.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyMod.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, declarations: [Comp, DivDir] }); MyMod.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyMod, decorators: [{ type: NgModule, args: [{ declarations: [Comp, DivDir] }] }] }); /**************************************************************************************************** * PARTIAL FILE: event_in_property_binding.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class DivDir { event: any; static ɵfac: i0.ɵɵFactoryDeclaration<DivDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<DivDir, "div", never, { "event": { "alias": "event"; "required": false; }; }, {}, never, never, false, never>; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDeclaration<MyMod, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyMod, [typeof Comp, typeof DivDir], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyMod>; } /**************************************************************************************************** * PARTIAL FILE: event_arg_host_listener_implicit_meaning.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; class Dir { c(event) { } } Dir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Dir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); Dir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: Dir, isStandalone: false, host: { listeners: { "click": "c($event)" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Dir, decorators: [{ type: Directive, args: [{ host: { '(click)': 'c($event)' }, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: event_arg_host_listener_implicit_meaning.d.ts ****************************************************************************************************/ export {}; /**************************************************************************************************** * PARTIAL FILE: event_host_explicit_access.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; class Dir { constructor() { this.$event = {}; } c(value) { } } Dir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Dir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); Dir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: Dir, isStandalone: false, host: { listeners: { "click": "c(this.$event)" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Dir, decorators: [{ type: Directive, args: [{ host: { '(click)': 'c(this.$event)', }, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: event_host_explicit_access.d.ts ****************************************************************************************************/ export {}; /**************************************************************************************************** * PARTIAL FILE: implicit_receiver_keyed_write_inside_template.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.message = ''; } } 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: ` <ng-template #template> <button (click)="this['mes' + 'sage'] = 'hello'">Click me</button> </ng-template> `, 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: ` <ng-template #template> <button (click)="this['mes' + 'sage'] = 'hello'">Click me</button> </ng-template> `, 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: implicit_receiver_keyed_write_inside_template.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { message: 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], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: embedded_view_listener_context.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",
{ "end_byte": 39186, "start_byte": 31199, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js_39188_46341
Import: 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: ` <ng-template let-obj> <button (click)="obj.value = 1">Change</button> </ng-template> `, 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: ` <ng-template let-obj> <button (click)="obj.value = 1">Change</button> </ng-template> `, 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: embedded_view_listener_context.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: simple_two_way.js ****************************************************************************************************/ import { Component, Directive, EventEmitter, Input, NgModule, Output } from '@angular/core'; import * as i0 from "@angular/core"; export class TestCmp { constructor() { this.name = ''; } } TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: 'Name: <input [(ngModel)]="name">', isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => NgModelDirective), selector: "[ngModel]", inputs: ["ngModel"], outputs: ["ngModelChanges"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{ type: Component, args: [{ selector: 'test-cmp', template: 'Name: <input [(ngModel)]="name">', standalone: false }] }] }); export class NgModelDirective { constructor() { this.ngModel = ''; this.ngModelChanges = new EventEmitter(); } } NgModelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: NgModelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); NgModelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: NgModelDirective, isStandalone: false, selector: "[ngModel]", inputs: { ngModel: "ngModel" }, outputs: { ngModelChanges: "ngModelChanges" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: NgModelDirective, decorators: [{ type: Directive, args: [{ selector: '[ngModel]', standalone: false }] }], propDecorators: { ngModel: [{ type: Input }], ngModelChanges: [{ type: Output }] } }); export class AppModule { } AppModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: AppModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); AppModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: AppModule, declarations: [TestCmp, NgModelDirective] }); AppModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: AppModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: AppModule, decorators: [{ type: NgModule, args: [{ declarations: [TestCmp, NgModelDirective] }] }] }); /**************************************************************************************************** * PARTIAL FILE: simple_two_way.d.ts ****************************************************************************************************/ import { EventEmitter } from '@angular/core'; import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, false, never>; } export declare class NgModelDirective { ngModel: string; ngModelChanges: EventEmitter<string>; static ɵfac: i0.ɵɵFactoryDeclaration<NgModelDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<NgModelDirective, "[ngModel]", never, { "ngModel": { "alias": "ngModel"; "required": false; }; }, { "ngModelChanges": "ngModelChanges"; }, never, never, false, never>; } export declare class AppModule { static ɵfac: i0.ɵɵFactoryDeclaration<AppModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<AppModule, [typeof TestCmp, typeof NgModelDirective], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<AppModule>; } /**************************************************************************************************** * PARTIAL FILE: nested_two_way.js ****************************************************************************************************/ import { Component, Directive, EventEmitter, Input, NgModule, Output } from '@angular/core'; import * as i0 from "@angular/core"; export class TestCmp { constructor() { this.name = ''; } } TestCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCm
{ "end_byte": 46341, "start_byte": 39188, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js_46343_53452
deps: [], target: i0.ɵɵFactoryTarget.Component }); TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: false, selector: "test-cmp", ngImport: i0, template: 'Name: <ng-template><input [(ngModel)]="name"></ng-template>', isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => NgModelDirective), selector: "[ngModel]", inputs: ["ngModel"], outputs: ["ngModelChanges"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{ type: Component, args: [{ selector: 'test-cmp', template: 'Name: <ng-template><input [(ngModel)]="name"></ng-template>', standalone: false }] }] }); export class NgModelDirective { constructor() { this.ngModel = ''; this.ngModelChanges = new EventEmitter(); } } NgModelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: NgModelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); NgModelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: NgModelDirective, isStandalone: false, selector: "[ngModel]", inputs: { ngModel: "ngModel" }, outputs: { ngModelChanges: "ngModelChanges" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: NgModelDirective, decorators: [{ type: Directive, args: [{ selector: '[ngModel]', standalone: false }] }], propDecorators: { ngModel: [{ type: Input }], ngModelChanges: [{ type: Output }] } }); export class AppModule { } AppModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: AppModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); AppModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: AppModule, declarations: [TestCmp, NgModelDirective] }); AppModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: AppModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: AppModule, decorators: [{ type: NgModule, args: [{ declarations: [TestCmp, NgModelDirective] }] }] }); /**************************************************************************************************** * PARTIAL FILE: nested_two_way.d.ts ****************************************************************************************************/ import { EventEmitter } from '@angular/core'; import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "test-cmp", never, {}, {}, never, never, false, never>; } export declare class NgModelDirective { ngModel: string; ngModelChanges: EventEmitter<string>; static ɵfac: i0.ɵɵFactoryDeclaration<NgModelDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<NgModelDirective, "[ngModel]", never, { "ngModel": { "alias": "ngModel"; "required": false; }; }, { "ngModelChanges": "ngModelChanges"; }, never, never, false, never>; } export declare class AppModule { static ɵfac: i0.ɵɵFactoryDeclaration<AppModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<AppModule, [typeof TestCmp, typeof NgModelDirective], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<AppModule>; } /**************************************************************************************************** * PARTIAL FILE: multiple_statements.js ****************************************************************************************************/ import { Component } 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: true, selector: "my-component", host: { listeners: { "click": "$event.preventDefault(); $event.target.blur()" } }, ngImport: i0, template: ` <div (click)="$event.preventDefault(); $event.target.blur()"></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', host: { '(click)': '$event.preventDefault(); $event.target.blur()' }, template: ` <div (click)="$event.preventDefault(); $event.target.blur()"></div> ` }] }] }); /**************************************************************************************************** * PARTIAL FILE: multiple_statements.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, true, never>; } /**************************************************************************************************** * PARTIAL FILE: mixed_one_way_two_way_listener_order.js ****************************************************************************************************/ import { Component, Directive, Input, Output } from '@angular/core'; import * as i0 from "@angular/core"; export class Dir { } Dir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Dir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); Dir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: Dir, isStandalone: true, selector: "[dir]", inputs: { a: "a", c: "c" }, outputs: { aChange: "aChange", b: "b", cChange: "cChange", d: "d" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Dir, decorators: [{ type: Directive, args: [{ selector: '[dir]' }] }], propDecorators: { a: [{ type: Input }], aChange: [{ type: Output }], b: [{ type: Output }], c: [{ type: Input }], cChange: [{ type: Output }], d: [{ type: Output }] } }); export class App { constructor() { this.value = 'hi'; this.noop = () => { };
{ "end_byte": 53452, "start_byte": 46343, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js_53453_59354
} } App.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: App, deps: [], target: i0.ɵɵFactoryTarget.Component }); App.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: App, isStandalone: true, selector: "ng-component", ngImport: i0, template: ` <div dir [(a)]="value" (b)="noop()" [(c)]="value" (d)="noop()"></div> `, isInline: true, dependencies: [{ kind: "directive", type: Dir, selector: "[dir]", inputs: ["a", "c"], outputs: ["aChange", "b", "cChange", "d"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: App, decorators: [{ type: Component, args: [{ imports: [Dir], template: ` <div dir [(a)]="value" (b)="noop()" [(c)]="value" (d)="noop()"></div> `, }] }] }); /**************************************************************************************************** * PARTIAL FILE: mixed_one_way_two_way_listener_order.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class Dir { a: unknown; aChange: unknown; b: unknown; c: unknown; cChange: unknown; d: unknown; static ɵfac: i0.ɵɵFactoryDeclaration<Dir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<Dir, "[dir]", never, { "a": { "alias": "a"; "required": false; }; "c": { "alias": "c"; "required": false; }; }, { "aChange": "aChange"; "b": "b"; "cChange": "cChange"; "d": "d"; }, never, never, true, never>; } export declare class App { value: string; noop: () => void; static ɵfac: i0.ɵɵFactoryDeclaration<App, never>; static ɵcmp: i0.ɵɵComponentDeclaration<App, "ng-component", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: two_way_binding_to_signal_loop_variable.js ****************************************************************************************************/ import { Component, Directive, model, signal } from '@angular/core'; import * as i0 from "@angular/core"; export class NgModelDirective { constructor() { this.ngModel = model.required(); } } NgModelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: NgModelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); NgModelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0.0-PLACEHOLDER", type: NgModelDirective, isStandalone: true, selector: "[ngModel]", inputs: { ngModel: { classPropertyName: "ngModel", publicName: "ngModel", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { ngModel: "ngModelChange" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: NgModelDirective, decorators: [{ type: Directive, args: [{ selector: '[ngModel]', }] }] }); export class TestCmp { constructor() { this.names = [signal('Angular')]; } } 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: "17.0.0", version: "0.0.0-PLACEHOLDER", type: TestCmp, isStandalone: true, selector: "ng-component", ngImport: i0, template: ` @for (name of names; track $index) { <input [(ngModel)]="name" /> } `, isInline: true, dependencies: [{ kind: "directive", type: NgModelDirective, selector: "[ngModel]", inputs: ["ngModel"], outputs: ["ngModelChange"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{ type: Component, args: [{ template: ` @for (name of names; track $index) { <input [(ngModel)]="name" /> } `, imports: [NgModelDirective], }] }] }); /**************************************************************************************************** * PARTIAL FILE: two_way_binding_to_signal_loop_variable.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class NgModelDirective { ngModel: import("@angular/core").ModelSignal<string>; static ɵfac: i0.ɵɵFactoryDeclaration<NgModelDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<NgModelDirective, "[ngModel]", never, { "ngModel": { "alias": "ngModel"; "required": true; "isSignal": true; }; }, { "ngModel": "ngModelChange"; }, never, never, true, never>; } export declare class TestCmp { names: import("@angular/core").WritableSignal<string>[]; static ɵfac: i0.ɵɵFactoryDeclaration<TestCmp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TestCmp, "ng-component", never, {}, {}, never, never, true, never>; }
{ "end_byte": 59354, "start_byte": 53453, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/multiple_statements.js_0_514
hostBindings: function MyComponent_HostBindings(rf, ctx) { if (rf & 1) { i0.ɵɵlistener("click", function MyComponent_click_HostBindingHandler($event) { $event.preventDefault(); return $event.target.blur(); }); } } … template: function MyComponent_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "div", 0); i0.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener($event) { $event.preventDefault(); return $event.target.blur(); }); i0.ɵɵelementEnd(); } }
{ "end_byte": 514, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/multiple_statements.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/nested_two_way.ts_0_566
import {Component, Directive, EventEmitter, Input, NgModule, Output} from '@angular/core'; @Component({ selector: 'test-cmp', template: 'Name: <ng-template><input [(ngModel)]="name"></ng-template>', standalone: false }) export class TestCmp { name: string = ''; } @Directive({ selector: '[ngModel]', standalone: false }) export class NgModelDirective { @Input() ngModel: string = ''; @Output() ngModelChanges: EventEmitter<string> = new EventEmitter(); } @NgModule({declarations: [TestCmp, NgModelDirective]}) export class AppModule { }
{ "end_byte": 566, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/nested_two_way.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/same_element_chained_listeners_template.js_0_425
… consts: [[__AttributeMarker.Bindings__, "click", "change"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "div", 0); $r3$.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener() { return ctx.click(); })("change", function MyComponent_Template_div_change_0_listener() { return ctx.change(); }); $r3$.ɵɵelementEnd(); } }
{ "end_byte": 425, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/same_element_chained_listeners_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/embedded_view_listener_context.ts_0_337
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: ` <ng-template let-obj> <button (click)="obj.value = 1">Change</button> </ng-template> `, standalone: false }) export class MyComponent { } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 337, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/embedded_view_listener_context.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/simple_two_way_template.js_0_467
function TestCmp_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0, "Name: "); $r3$.ɵɵelementStart(1, "input", 0); $r3$.ɵɵtwoWayListener("ngModelChange", function TestCmp_Template_input_ngModelChange_1_listener($event) { $r3$.ɵɵtwoWayBindingSet(ctx.name, $event) || (ctx.name = $event); return $event; }); $r3$.ɵɵelementEnd(); } if (rf & 2) { $r3$.ɵɵadvance(); $r3$.ɵɵtwoWayProperty("ngModel", ctx.name); } }
{ "end_byte": 467, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/simple_two_way_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/embedded_view_listener_context_template.pipeline.js_0_440
function MyComponent_ng_template_0_Template(rf, $ctx$) { if (rf & 1) { const $_r3$ = $i0$.ɵɵgetCurrentView(); $i0$.ɵɵelementStart(0, "button", 0); $i0$.ɵɵlistener("click", function MyComponent_ng_template_0_Template_button_click_0_listener() { const $obj_r1$ = $i0$.ɵɵrestoreView($_r3$).$implicit; return $i0$.ɵɵresetView($obj_r1$.value = 1); }); $i0$.ɵɵtext(1, "Change"); $i0$.ɵɵelementEnd(); } }
{ "end_byte": 440, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/embedded_view_listener_context_template.pipeline.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_host_listener_implicit_meaning.ts_0_151
import {Directive} from '@angular/core'; @Directive({ host: { '(click)': 'c($event)' }, standalone: false }) class Dir { c(event: any) {} }
{ "end_byte": 151, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_host_listener_implicit_meaning.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/element_listener.ts_0_301
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: `<div (click)="onClick($event); 1 == 1"></div>`, standalone: false }) export class MyComponent { onClick(event: any) {} } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 301, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/element_listener.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/component_listener.ts_0_424
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-app', template: `<div>My App</div>`, standalone: false }) export class MyApp { } @Component({ selector: 'my-component', template: `<my-app (click)="onClick($event);"></my-app>`, standalone: false }) export class MyComponent { onClick(event: any) {} } @NgModule({declarations: [MyComponent, MyApp]}) export class MyModule { }
{ "end_byte": 424, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/component_listener.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/cross_element_chained_listeners.ts_0_655
import {Component, EventEmitter, NgModule, Output} from '@angular/core'; @Component({ selector: 'some-comp', template: '', standalone: false }) export class SomeComp { @Output() update = new EventEmitter<any>(); @Output() delete = new EventEmitter<any>(); } @Component({ selector: 'my-component', template: ` <div (click)="click()" (change)="change()"></div> <some-comp (update)="update()" (delete)="delete()"></some-comp> `, standalone: false }) export class MyComponent { click() {} change() {} delete() {} update() {} } @NgModule({declarations: [MyComponent, SomeComp]}) export class MyModule { }
{ "end_byte": 655, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/cross_element_chained_listeners.ts" }