_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js_21483_29001
tors: { someDirective: [{ type: Input }] } }); 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 [someDirective]="true"></ng-template>', isInline: true, dependencies: [{ kind: "directive", type: SomeDirective, selector: "[someDirective]", inputs: ["someDirective"] }] }); 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 [someDirective]="true"></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: [SomeDirective, 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: [SomeDirective, MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: ng_template_binding_directive.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class SomeDirective { someDirective: any; static ɵfac: i0.ɵɵFactoryDeclaration<SomeDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SomeDirective, "[someDirective]", never, { "someDirective": { "alias": "someDirective"; "required": false; }; }, {}, never, never, false, never>; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof SomeDirective, typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: structural_directive.js ****************************************************************************************************/ import { Component, Directive, Input, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class SomeDirective { } SomeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SomeDirective, isStandalone: false, selector: "[someDirective]", inputs: { someDirective: "someDirective" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ selector: '[someDirective]', standalone: false }] }], propDecorators: { someDirective: [{ type: Input }] } }); export class MyComponent { } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "my-component", ngImport: i0, template: '<div *someDirective></div>', isInline: true, dependencies: [{ kind: "directive", type: SomeDirective, selector: "[someDirective]", inputs: ["someDirective"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: '<div *someDirective></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: [SomeDirective, 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: [SomeDirective, MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: structural_directive.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class SomeDirective { someDirective: any; static ɵfac: i0.ɵɵFactoryDeclaration<SomeDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SomeDirective, "[someDirective]", never, { "someDirective": { "alias": "someDirective"; "required": false; }; }, {}, never, never, false, never>; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof SomeDirective, typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: output_directive.js ****************************************************************************************************/ import { Component, Directive, EventEmitter, NgModule, Output } from '@angular/core'; import * as i0 from "@angular/core"; export class SomeDirective { constructor() { this.someDirective = new EventEmitter(); } } SomeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SomeDirective,
{ "end_byte": 29001, "start_byte": 21483, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js_29002_32742
sStandalone: false, selector: "[someDirective]", outputs: { someDirective: "someDirective" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ selector: '[someDirective]', standalone: false }] }], propDecorators: { someDirective: [{ type: Output }] } }); export class MyComponent { noop() { } } 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 (someDirective)="noop()"></div>', isInline: true, dependencies: [{ kind: "directive", type: SomeDirective, selector: "[someDirective]", outputs: ["someDirective"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: '<div (someDirective)="noop()"></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: [SomeDirective, 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: [SomeDirective, MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: output_directive.d.ts ****************************************************************************************************/ import { EventEmitter } from '@angular/core'; import * as i0 from "@angular/core"; export declare class SomeDirective { someDirective: EventEmitter<any>; static ɵfac: i0.ɵɵFactoryDeclaration<SomeDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SomeDirective, "[someDirective]", never, {}, { "someDirective": "someDirective"; }, never, never, false, never>; } export declare class MyComponent { noop(): 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 SomeDirective, typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; }
{ "end_byte": 32742, "start_byte": 29002, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/ng_container_directive_definition.js_0_643
function MyComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementContainerStart(0, 1); $r3$.ɵɵtext(1, "Some content"); $r3$.ɵɵelementContainerEnd(); } } … MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ … consts: [["directiveA", "", __AttributeMarker.Template__, "ngIf"], ["directiveA", ""]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtemplate(0, MyComponent_ng_container_0_Template, 2, 0, "ng-container", 0); } if (rf & 2) { $r3$.ɵɵproperty("ngIf", ctx.showing); } }, … dependencies: [DirectiveA], … });
{ "end_byte": 643, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/ng_container_directive_definition.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/output_directive_definition.js_0_486
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ … consts: [[__AttributeMarker.Bindings__, "someDirective"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "div", 0); $r3$.ɵɵlistener("someDirective", function MyComponent_Template_div_someDirective_0_listener() { return ctx.noop(); }); $r3$.ɵɵelementEnd(); } }, … dependencies: [SomeDirective], encapsulation: 2 });
{ "end_byte": 486, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/output_directive_definition.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/i18n_attribute_directive_factory.js_0_124
MyComponent.ɵfac = function MyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MyComponent)(); };
{ "end_byte": 124, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/i18n_attribute_directive_factory.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/i18n_attribute_directive.ts_0_367
import {Component, Directive, NgModule} from '@angular/core'; @Directive({ selector: '[i18n]', standalone: false }) export class I18nDirective { } @Component({ selector: 'my-component', template: '<div i18n></div>', standalone: false }) export class MyComponent { } @NgModule({declarations: [I18nDirective, MyComponent]}) export class MyModule { }
{ "end_byte": 367, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/i18n_attribute_directive.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/ng_template_binding_directive_definition.js_0_448
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ … consts: [[__AttributeMarker.Bindings__, "someDirective"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 0, 0, "ng-template", 0); } if (rf & 2) { $r3$.ɵɵproperty("someDirective", true); } }, … dependencies: [SomeDirective], encapsulation: 2 });
{ "end_byte": 448, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/ng_template_binding_directive_definition.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/i18n_prefix_attribute_directive_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_directives/matching/i18n_prefix_attribute_directive_factory.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/ng_template_binding_directive.ts_0_452
import {Component, Directive, Input, NgModule} from '@angular/core'; @Directive({ selector: '[someDirective]', standalone: false }) export class SomeDirective { @Input() someDirective: any; } @Component({ selector: 'my-component', template: '<ng-template [someDirective]="true"></ng-template>', standalone: false }) export class MyComponent { } @NgModule({declarations: [SomeDirective, MyComponent]}) export class MyModule { }
{ "end_byte": 452, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/ng_template_binding_directive.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/i18n_prefix_attribute_directive.ts_0_596
import {Component, Directive, NgModule} from '@angular/core'; @Directive({ selector: '[i18n]', standalone: false }) export class I18nDirective { } @Directive({ selector: '[i18n-foo]', standalone: false }) export class I18nFooDirective { } @Directive({ selector: '[foo]', standalone: false }) export class FooDirective { } @Component({ selector: 'my-component', template: '<div i18n-foo></div>', standalone: false }) export class MyComponent { } @NgModule({declarations: [I18nDirective, I18nFooDirective, FooDirective, MyComponent]}) export class MyModule { }
{ "end_byte": 596, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/i18n_prefix_attribute_directive.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/ng_template_directive_definition.js_0_434
function MyComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtext(0, "Some content"); } } … MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ … consts: [["directiveA", ""]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 1, 0, "ng-template", 0); } }, … dependencies: [DirectiveA], … });
{ "end_byte": 434, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/ng_template_directive_definition.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/i18n_attribute_directive_definition.js_0_298
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors: [["my-component"]], standalone: false, decls: 1, vars: 0, template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelement(0, "div"); } }, encapsulation: 2 });
{ "end_byte": 298, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/i18n_attribute_directive_definition.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/ng_template_directive.ts_0_424
import {Component, Directive, NgModule} from '@angular/core'; @Directive({ selector: 'ng-template[directiveA]', standalone: false }) export class DirectiveA { } @Component({ selector: 'my-component', template: ` <ng-template directiveA>Some content</ng-template> `, standalone: false }) export class MyComponent { } @NgModule({declarations: [DirectiveA, MyComponent]}) 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_directives/matching/ng_template_directive.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/structural_directive.ts_0_424
import {Component, Directive, Input, NgModule} from '@angular/core'; @Directive({ selector: '[someDirective]', standalone: false }) export class SomeDirective { @Input() someDirective: any; } @Component({ selector: 'my-component', template: '<div *someDirective></div>', standalone: false }) export class MyComponent { } @NgModule({declarations: [SomeDirective, MyComponent]}) 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_directives/matching/structural_directive.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/structural_directive_definition.js_0_352
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ … consts: [[__AttributeMarker.Template__, "someDirective"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵtemplate(0, MyComponent_div_0_Template, 1, 0, "div", 0); } }, … dependencies: [SomeDirective], encapsulation: 2 });
{ "end_byte": 352, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/structural_directive_definition.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/host_directives_with_host_aliases.ts_0_629
import {Component, Directive, EventEmitter, Input, Output} from '@angular/core'; @Directive({}) export class HostDir { @Input('valueAlias') value: number; @Input('colorAlias') color: string; @Output('openedAlias') opened = new EventEmitter(); @Output('closedAlias') closed = new EventEmitter(); } @Component({ selector: 'my-component', template: '', hostDirectives: [{ directive: HostDir, inputs: ['valueAlias', 'colorAlias: customColorAlias'], outputs: ['openedAlias', 'closedAlias: customClosedAlias'], }], standalone: false }) export class MyComponent { }
{ "end_byte": 629, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/host_directives_with_host_aliases.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/GOLDEN_PARTIAL.js_0_7366
/**************************************************************************************************** * PARTIAL FILE: basic_host_directives.js ****************************************************************************************************/ import { Component, Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class DirectiveA { } DirectiveA.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectiveA, deps: [], target: i0.ɵɵFactoryTarget.Directive }); DirectiveA.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: DirectiveA, isStandalone: true, host: { classAttribute: "dir-a" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectiveA, decorators: [{ type: Directive, args: [{ host: { 'class': 'dir-a' } }] }] }); export class DirectiveB { } DirectiveB.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectiveB, deps: [], target: i0.ɵɵFactoryTarget.Directive }); DirectiveB.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: DirectiveB, isStandalone: true, host: { classAttribute: "dir-b" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectiveB, decorators: [{ type: Directive, args: [{ host: { 'class': 'dir-b' } }] }] }); 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", hostDirectives: [{ directive: DirectiveA }, { directive: DirectiveB }], ngImport: i0, 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: '', hostDirectives: [DirectiveA, DirectiveB], standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: basic_host_directives.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class DirectiveA { static ɵfac: i0.ɵɵFactoryDeclaration<DirectiveA, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<DirectiveA, never, never, {}, {}, never, never, true, never>; } export declare class DirectiveB { static ɵfac: i0.ɵɵFactoryDeclaration<DirectiveB, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<DirectiveB, never, never, {}, {}, never, never, true, never>; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, [{ directive: typeof DirectiveA; inputs: {}; outputs: {}; }, { directive: typeof DirectiveB; inputs: {}; outputs: {}; }]>; } /**************************************************************************************************** * PARTIAL FILE: chained_host_directives.js ****************************************************************************************************/ import { Component, Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class DirectiveA { } DirectiveA.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectiveA, deps: [], target: i0.ɵɵFactoryTarget.Directive }); DirectiveA.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: DirectiveA, isStandalone: true, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectiveA, decorators: [{ type: Directive, args: [{}] }] }); export class DirectiveB { } DirectiveB.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectiveB, deps: [], target: i0.ɵɵFactoryTarget.Directive }); DirectiveB.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: DirectiveB, isStandalone: true, hostDirectives: [{ directive: DirectiveA }], ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectiveB, decorators: [{ type: Directive, args: [{ hostDirectives: [DirectiveA], }] }] }); export class DirectiveC { } DirectiveC.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectiveC, deps: [], target: i0.ɵɵFactoryTarget.Directive }); DirectiveC.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: DirectiveC, isStandalone: true, hostDirectives: [{ directive: DirectiveB }], ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectiveC, decorators: [{ type: Directive, args: [{ hostDirectives: [DirectiveB], }] }] }); 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", hostDirectives: [{ directive: DirectiveC }], ngImport: i0, 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: '', hostDirectives: [DirectiveC], standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: chained_host_directives.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class DirectiveA { static ɵfac: i0.ɵɵFactoryDeclaration<DirectiveA, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<DirectiveA, never, never, {}, {}, never, never, true, never>; } export declare class DirectiveB { static ɵfac: i0.ɵɵFactoryDeclaration<DirectiveB, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<DirectiveB, never, never, {}, {}, never, never, true, [{ directive: typeof DirectiveA; inputs: {}; outputs: {}; }]>; } export declare class DirectiveC { static ɵfac: i0.ɵɵFactoryDeclaration<Dire
{ "end_byte": 7366, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/GOLDEN_PARTIAL.js_7367_15042
tiveC, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<DirectiveC, never, never, {}, {}, never, never, true, [{ directive: typeof DirectiveB; inputs: {}; outputs: {}; }]>; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, [{ directive: typeof DirectiveC; inputs: {}; outputs: {}; }]>; } /**************************************************************************************************** * PARTIAL FILE: forward_ref_host_directives.js ****************************************************************************************************/ import { Component, Directive, forwardRef, Input } 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", hostDirectives: [{ directive: i0.forwardRef(() => DirectiveB) }], ngImport: i0, 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: '', hostDirectives: [forwardRef(() => DirectiveB)], standalone: false }] }] }); export class DirectiveB { } DirectiveB.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectiveB, deps: [], target: i0.ɵɵFactoryTarget.Directive }); DirectiveB.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: DirectiveB, isStandalone: true, hostDirectives: [{ directive: i0.forwardRef(() => DirectiveA), inputs: ["value", "value"] }], ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectiveB, decorators: [{ type: Directive, args: [{ hostDirectives: [{ directive: forwardRef(() => DirectiveA), inputs: ['value'] }], }] }] }); export class DirectiveA { } DirectiveA.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectiveA, deps: [], target: i0.ɵɵFactoryTarget.Directive }); DirectiveA.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: DirectiveA, isStandalone: true, inputs: { value: "value" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectiveA, decorators: [{ type: Directive, args: [{}] }], propDecorators: { value: [{ type: Input }] } }); /**************************************************************************************************** * PARTIAL FILE: forward_ref_host_directives.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, [{ directive: typeof DirectiveB; inputs: {}; outputs: {}; }]>; } export declare class DirectiveB { static ɵfac: i0.ɵɵFactoryDeclaration<DirectiveB, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<DirectiveB, never, never, {}, {}, never, never, true, [{ directive: typeof DirectiveA; inputs: { "value": "value"; }; outputs: {}; }]>; } export declare class DirectiveA { value: any; static ɵfac: i0.ɵɵFactoryDeclaration<DirectiveA, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<DirectiveA, never, never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: host_directives_with_inputs_outputs.js ****************************************************************************************************/ import { Component, Directive, EventEmitter, Input, Output } from '@angular/core'; import * as i0 from "@angular/core"; export class HostDir { constructor() { this.opened = new EventEmitter(); this.closed = new EventEmitter(); } } HostDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostDir, isStandalone: true, inputs: { value: "value", color: "color" }, outputs: { opened: "opened", closed: "closed" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostDir, decorators: [{ type: Directive, args: [{}] }], propDecorators: { value: [{ type: Input }], color: [{ type: Input }], opened: [{ type: Output }], closed: [{ type: Output }] } }); 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", hostDirectives: [{ directive: HostDir, inputs: ["value", "value", "color", "colorAlias"], outputs: ["opened", "opened", "closed", "closedAlias"] }], ngImport: i0, 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: '', hostDirectives: [{ directive: HostDir, inputs: ['value', 'color: colorAlias'], outputs: ['opened', 'closed: closedAlias'], }], standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: host_directives_with_inputs_outputs.d.ts ****************************************************************************************************/ import { EventEmitter } from '@angular/core'; import * as i0 from "@angular/core"; export declare class HostDir { value: number; color: string; opened: EventEmitter<any>; closed: EventEmitter<any>; static ɵfac: i0.ɵɵFactoryDeclaration<HostDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostDir, never, never, { "value": { "alias": "value"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, { "opened": "opened"; "closed": "closed"; }, never, never, true, never>; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "m
{ "end_byte": 15042, "start_byte": 7367, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/GOLDEN_PARTIAL.js_15043_19445
-component", never, {}, {}, never, never, false, [{ directive: typeof HostDir; inputs: { "value": "value"; "color": "colorAlias"; }; outputs: { "opened": "opened"; "closed": "closedAlias"; }; }]>; } /**************************************************************************************************** * PARTIAL FILE: host_directives_with_host_aliases.js ****************************************************************************************************/ import { Component, Directive, EventEmitter, Input, Output } from '@angular/core'; import * as i0 from "@angular/core"; export class HostDir { constructor() { this.opened = new EventEmitter(); this.closed = new EventEmitter(); } } HostDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostDir, isStandalone: true, inputs: { value: ["valueAlias", "value"], color: ["colorAlias", "color"] }, outputs: { opened: "openedAlias", closed: "closedAlias" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostDir, decorators: [{ type: Directive, args: [{}] }], propDecorators: { value: [{ type: Input, args: ['valueAlias'] }], color: [{ type: Input, args: ['colorAlias'] }], opened: [{ type: Output, args: ['openedAlias'] }], closed: [{ type: Output, args: ['closedAlias'] }] } }); 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", hostDirectives: [{ directive: HostDir, inputs: ["valueAlias", "valueAlias", "colorAlias", "customColorAlias"], outputs: ["openedAlias", "openedAlias", "closedAlias", "customClosedAlias"] }], ngImport: i0, 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: '', hostDirectives: [{ directive: HostDir, inputs: ['valueAlias', 'colorAlias: customColorAlias'], outputs: ['openedAlias', 'closedAlias: customClosedAlias'], }], standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: host_directives_with_host_aliases.d.ts ****************************************************************************************************/ import { EventEmitter } from '@angular/core'; import * as i0 from "@angular/core"; export declare class HostDir { value: number; color: string; opened: EventEmitter<any>; closed: EventEmitter<any>; static ɵfac: i0.ɵɵFactoryDeclaration<HostDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostDir, never, never, { "value": { "alias": "valueAlias"; "required": false; }; "color": { "alias": "colorAlias"; "required": false; }; }, { "opened": "openedAlias"; "closed": "closedAlias"; }, never, never, true, never>; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, [{ directive: typeof HostDir; inputs: { "valueAlias": "valueAlias"; "colorAlias": "customColorAlias"; }; outputs: { "openedAlias": "openedAlias"; "closedAlias": "customClosedAlias"; }; }]>; }
{ "end_byte": 19445, "start_byte": 15043, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/basic_host_directives.ts_0_350
import {Component, Directive} from '@angular/core'; @Directive({host: {'class': 'dir-a'}}) export class DirectiveA { } @Directive({host: {'class': 'dir-b'}}) export class DirectiveB { } @Component({ selector: 'my-component', template: '', hostDirectives: [DirectiveA, DirectiveB], standalone: false }) export class MyComponent { }
{ "end_byte": 350, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/basic_host_directives.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/chained_host_directives_definition.js_0_683
DirectiveA.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ type: DirectiveA });… DirectiveB.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ type: DirectiveB, features: [$r3$.ɵɵHostDirectivesFeature([DirectiveA])] });… DirectiveC.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ type: DirectiveC, features: [$r3$.ɵɵHostDirectivesFeature([DirectiveB])] });… MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors: [ ["my-component"] ], standalone: false, features: [$r3$.ɵɵHostDirectivesFeature([DirectiveC])], decls: 0, vars: 0, template: function MyComponent_Template(rf, ctx) {}, encapsulation: 2 });
{ "end_byte": 683, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/chained_host_directives_definition.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/forward_ref_host_directives_definition.js_0_698
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors: [ ["my-component"] ], standalone: false, features: [$r3$.ɵɵHostDirectivesFeature(function () { return [DirectiveB]; })], decls: 0, vars: 0, template: function MyComponent_Template(rf, ctx) {}, encapsulation: 2 });… DirectiveB.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ type: DirectiveB, features: [$r3$.ɵɵHostDirectivesFeature(function () { return [{ directive: DirectiveA, inputs: ["value", "value"] }]; })] });… DirectiveA.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ type: DirectiveA, inputs: { value: "value" } });
{ "end_byte": 698, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/forward_ref_host_directives_definition.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/host_directives_with_inputs_outputs.ts_0_547
import {Component, Directive, EventEmitter, Input, Output} from '@angular/core'; @Directive({}) export class HostDir { @Input() value: number; @Input() color: string; @Output() opened = new EventEmitter(); @Output() closed = new EventEmitter(); } @Component({ selector: 'my-component', template: '', hostDirectives: [{ directive: HostDir, inputs: ['value', 'color: colorAlias'], outputs: ['opened', 'closed: closedAlias'], }], standalone: false }) export class MyComponent { }
{ "end_byte": 547, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/host_directives_with_inputs_outputs.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/host_directives_with_host_aliases_definition.js_0_480
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors: [ ["my-component"] ], standalone: false, features: [$r3$.ɵɵHostDirectivesFeature([{ directive: HostDir, inputs: ["valueAlias", "valueAlias", "colorAlias", "customColorAlias"], outputs: ["openedAlias", "openedAlias", "closedAlias", "customClosedAlias"] }])], decls: 0, vars: 0, template: function MyComponent_Template(rf, ctx) {}, encapsulation: 2 });
{ "end_byte": 480, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/host_directives_with_host_aliases_definition.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/chained_host_directives.ts_0_400
import {Component, Directive} from '@angular/core'; @Directive({}) export class DirectiveA { } @Directive({ hostDirectives: [DirectiveA], }) export class DirectiveB { } @Directive({ hostDirectives: [DirectiveB], }) export class DirectiveC { } @Component({ selector: 'my-component', template: '', hostDirectives: [DirectiveC], standalone: false }) export class MyComponent { }
{ "end_byte": 400, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/chained_host_directives.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/host_directives_with_inputs_outputs_definition.js_0_438
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors: [ ["my-component"] ], standalone: false, features: [$r3$.ɵɵHostDirectivesFeature([{ directive: HostDir, inputs: ["value", "value", "color", "colorAlias"], outputs: ["opened", "opened", "closed", "closedAlias"] }])], decls: 0, vars: 0, template: function MyComponent_Template(rf, ctx) {}, encapsulation: 2 });
{ "end_byte": 438, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/host_directives_with_inputs_outputs_definition.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/forward_ref_host_directives.ts_0_433
import {Component, Directive, forwardRef, Input} from '@angular/core'; @Component({ selector: 'my-component', template: '', hostDirectives: [forwardRef(() => DirectiveB)], standalone: false }) export class MyComponent { } @Directive({ hostDirectives: [{directive: forwardRef(() => DirectiveA), inputs: ['value']}], }) export class DirectiveB { } @Directive({}) export class DirectiveA { @Input() value: any; }
{ "end_byte": 433, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/forward_ref_host_directives.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/basic_host_directives_definition.js_0_317
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors: [ ["my-component"] ], standalone: false, features: [$r3$.ɵɵHostDirectivesFeature([DirectiveA, DirectiveB])], decls: 0, vars: 0, template: function MyComponent_Template(rf, ctx) {}, encapsulation: 2 });
{ "end_byte": 317, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/basic_host_directives_definition.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/order_bindings.ts_0_759
import {Component} from '@angular/core'; @Component({ selector: 'some-elem', template: ``, inputs: ['attr1', 'prop1', 'attrInterp1', 'propInterp1'], }) export class SomeCmp { } @Component({ selector: 'my-cmp', imports: [SomeCmp], host: { 'literal1': 'foo', '(event1)': 'foo()', '[attr.attr1]': 'foo', '[prop1]': 'foo', '[class.class1]': 'false', '[style.style1]': 'true', '[class]': 'foo', '[style]': 'foo', }, template: ` <some-elem literal1="foo" (event1)="foo()" [attr.attr1]="foo" [prop1]="foo", [class.class1]="foo", [style.style1]="foo" style="foo" class="foo" attr.attrInterp1="interp {{foo}}" propInterp1="interp {{foo}}" /> ` }) export class MyCmp { foo: any; }
{ "end_byte": 759, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/order_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/GOLDEN_PARTIAL.js_0_4081
/**************************************************************************************************** * PARTIAL FILE: order_bindings.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class SomeCmp { } SomeCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); SomeCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: SomeCmp, isStandalone: true, selector: "some-elem", inputs: { attr1: "attr1", prop1: "prop1", attrInterp1: "attrInterp1", propInterp1: "propInterp1" }, ngImport: i0, template: ``, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeCmp, decorators: [{ type: Component, args: [{ selector: 'some-elem', template: ``, inputs: ['attr1', 'prop1', 'attrInterp1', 'propInterp1'], }] }] }); export class MyCmp { } MyCmp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyCmp, isStandalone: true, selector: "my-cmp", host: { attributes: { "literal1": "foo" }, listeners: { "event1": "foo()" }, properties: { "attr.attr1": "foo", "prop1": "foo", "class.class1": "false", "style.style1": "true", "class": "foo", "style": "foo" } }, ngImport: i0, template: ` <some-elem literal1="foo" (event1)="foo()" [attr.attr1]="foo" [prop1]="foo", [class.class1]="foo", [style.style1]="foo" style="foo" class="foo" attr.attrInterp1="interp {{foo}}" propInterp1="interp {{foo}}" /> `, isInline: true, dependencies: [{ kind: "component", type: SomeCmp, selector: "some-elem", inputs: ["attr1", "prop1", "attrInterp1", "propInterp1"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyCmp, decorators: [{ type: Component, args: [{ selector: 'my-cmp', imports: [SomeCmp], host: { 'literal1': 'foo', '(event1)': 'foo()', '[attr.attr1]': 'foo', '[prop1]': 'foo', '[class.class1]': 'false', '[style.style1]': 'true', '[class]': 'foo', '[style]': 'foo', }, template: ` <some-elem literal1="foo" (event1)="foo()" [attr.attr1]="foo" [prop1]="foo", [class.class1]="foo", [style.style1]="foo" style="foo" class="foo" attr.attrInterp1="interp {{foo}}" propInterp1="interp {{foo}}" /> ` }] }] }); /**************************************************************************************************** * PARTIAL FILE: order_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class SomeCmp { static ɵfac: i0.ɵɵFactoryDeclaration<SomeCmp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SomeCmp, "some-elem", never, { "attr1": { "alias": "attr1"; "required": false; }; "prop1": { "alias": "prop1"; "required": false; }; "attrInterp1": { "alias": "attrInterp1"; "required": false; }; "propInterp1": { "alias": "propInterp1"; "required": false; }; }, {}, never, never, true, never>; } export declare class MyCmp { foo: any; static ɵfac: i0.ɵɵFactoryDeclaration<MyCmp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyCmp, "my-cmp", never, {}, {}, never, never, true, never>; }
{ "end_byte": 4081, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/order_bindings.js_0_974
hostAttrs: ["literal1", "foo"] // ... function MyCmp_HostBindings(rf, ctx) { if (rf & 1) { i0.ɵɵlistener("event1", function MyCmp_event1_HostBindingHandler() { return ctx.foo(); }); } if (rf & 2) { i0.ɵɵhostProperty("prop1", ctx.foo); i0.ɵɵattribute("attr1", ctx.foo); i0.ɵɵstyleMap(ctx.foo); i0.ɵɵclassMap(ctx.foo); i0.ɵɵstyleProp("style1", true); i0.ɵɵclassProp("class1", false); } } // ... function MyCmp_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "some-elem", 0); i0.ɵɵlistener("event1", function MyCmp_Template_some_elem_event1_0_listener() { return ctx.foo(); }); i0.ɵɵelementEnd(); } if (rf & 2) { i0.ɵɵstyleProp("style1", ctx.foo); i0.ɵɵclassProp("class1", ctx.foo); i0.ɵɵattributeInterpolate1("attrInterp1", "interp ", ctx.foo, ""); i0.ɵɵpropertyInterpolate1("propInterp1", "interp ", ctx.foo, ""); i0.ɵɵproperty("prop1", ctx.foo); i0.ɵɵattribute("attr1", ctx.foo); } }
{ "end_byte": 974, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/order_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_dollar_any.ts_0_223
import {Component} from '@angular/core'; @Component({ selector: '[hostBindingDir]', host: { '[style.color]': '$any("red")', }, template: ``, standalone: false }) export class HostBindingDir { }
{ "end_byte": 223, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_dollar_any.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/sanitization.ts_0_499
import {Directive} from '@angular/core'; @Directive({ selector: '[hostBindingDir]', host: { '[innerHtml]': 'evil', '[href]': 'evil', '[attr.style]': 'evil', '[src]': 'evil', '[sandbox]': 'evil', }, }) export class HostBindingDir { evil = 'evil'; } @Directive({ selector: 'a', host: { '[innerHtml]': 'evil', '[href]': 'evil', '[attr.style]': 'evil', '[src]': 'evil', '[sandbox]': 'evil', }, }) export class HostBindingDir2 { evil = 'evil'; }
{ "end_byte": 499, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/sanitization.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_primitive_names.js_1_375
HostBindingDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ type: HostBindingDir, selectors: [["", "hostBindingDir", ""]], hostVars: 10, hostBindings: function HostBindingDir_HostBindings(rf, ctx) { if (rf & 2) { $r3$.ɵɵclassProp("a", true)("b", false)("c", ctx.true)("d", ctx.false)("e", ctx.other); } }, standalone: false });
{ "end_byte": 375, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_primitive_names.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings.js_1_325
HostBindingDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ type: HostBindingDir, selectors: [["", "hostBindingDir", ""]], hostVars: 1, hostBindings: function HostBindingDir_HostBindings(rf, ctx) { if (rf & 2) { $r3$.ɵɵhostProperty("id", ctx.dirId); } }, standalone: false } );
{ "end_byte": 325, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/security_sensitive_style_bindings.ts_0_261
import {Directive} from '@angular/core'; @Directive({ selector: '[hostBindingDir]', host: {'[style.background-image]': 'imgUrl', '[style]': 'styles'}, }) export class HostBindingDir { imgUrl = 'url(foo.jpg)'; styles = {backgroundImage: this.imgUrl}; }
{ "end_byte": 261, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/security_sensitive_style_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_with_pure_functions.ts_0_295
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'host-binding-comp', host: { '[id]': '["red", id]' }, template: '', standalone: false }) export class HostBindingComp { id = 'some id'; } @NgModule({declarations: [HostBindingComp]}) export class MyModule { }
{ "end_byte": 295, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_with_pure_functions.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_class_bindings_with_temporaries.ts_0_244
import {Directive} from '@angular/core'; @Directive({ selector: '[hostBindingDir]', host: { '[class.a]': 'value ?? "class-a"', '[class.b]': 'value ?? "class-b"', }, }) export class HostBindingDir { value: number|null = null; }
{ "end_byte": 244, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_class_bindings_with_temporaries.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_property_bindings_mixed.js_0_189
hostBindings: function MyDirective_HostBindings(rf, ctx) { … if (rf & 2) { $r3$.ɵɵhostProperty("title", "my title")("id", "my-id"); $r3$.ɵɵattribute("tabindex", 1); } }
{ "end_byte": 189, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_property_bindings_mixed.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_attributes.ts_0_266
import {Directive, NgModule} from '@angular/core'; @Directive({ selector: '[hostAttributeDir]', host: { 'aria-label': 'label' }, standalone: false }) export class HostAttributeDir { } @NgModule({declarations: [HostAttributeDir]}) export class MyModule { }
{ "end_byte": 266, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_attributes.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_attribute_bindings.js_1_324
HostAttributeDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ type: HostAttributeDir, selectors: [["", "hostAttributeDir", ""]], hostVars: 1, hostBindings: function HostAttributeDir_HostBindings(rf, ctx) { if (rf & 2) { $r3$.ɵɵattribute("required", ctx.required); } }, standalone: false });
{ "end_byte": 324, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_attribute_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_attribute_bindings_mixed.ts_0_222
import {Directive} from '@angular/core'; @Directive({ selector: '[my-dir]', host: { '[attr.title]': '"my title"', '[tabindex]': '1', '[attr.id]': '"my-id"' }, standalone: false }) export class MyDirective { }
{ "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/host_bindings/chain_attribute_bindings_mixed.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_quoted_names.js_1_366
HostBindingDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ type: HostBindingDir, selectors: [["", "hostBindingDir", ""]], hostVars: 6, hostBindings: function HostBindingDir_HostBindings(rf, ctx) { if (rf & 2) { $r3$.ɵɵclassProp("a", ctx["is-a"])("b", ctx["is-\"b\""])("c", ctx["\"is-c\""]); } }, standalone: false });
{ "end_byte": 366, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_quoted_names.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/security_sensitive_constant_attributes.js_0_106
hostAttrs: ["src", "trusted", "srcdoc", "trusted"] … hostAttrs: ["src", "trusted", "srcdoc", "trusted"]
{ "end_byte": 106, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/security_sensitive_constant_attributes.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_with_ts_expression_node.ts_0_317
import {Component} from '@angular/core'; export function getBar(): string { console.log('This function cannot be extracted.'); return `${Math.random()}`; } export const BAR_CONST = getBar(); @Component({ selector: 'my-cmp', host: { 'foo': BAR_CONST, }, template: `` }) export class MyComponent { }
{ "end_byte": 317, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_with_ts_expression_node.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_listeners.ts_0_223
import {Component, HostListener} from '@angular/core'; @Component({ selector: 'my-cmp', host: { '(document:dragover)': 'foo($event)', }, template: ` ` }) export class MyComponent { foo!: any; }
{ "end_byte": 223, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_listeners.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_attribute_bindings_all.ts_0_285
import {Directive, HostBinding} from '@angular/core'; @Directive({ selector: '[my-dir]', host: { '[attr.tabindex]': '1' }, standalone: false }) export class MyDirective { @HostBinding('attr.title') myTitle = 'hello'; @HostBinding('attr.id') myId = 'special-directive'; }
{ "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/host_bindings/chain_attribute_bindings_all.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js_0_7808
/**************************************************************************************************** * PARTIAL FILE: host_bindings.js ****************************************************************************************************/ import { Directive, HostBinding, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class HostBindingDir { constructor() { this.dirId = 'some id'; } } HostBindingDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostBindingDir, isStandalone: false, selector: "[hostBindingDir]", host: { properties: { "id": "this.dirId" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{ type: Directive, args: [{ selector: '[hostBindingDir]', standalone: false }] }], propDecorators: { dirId: [{ type: HostBinding, args: ['id'] }] } }); 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: [HostBindingDir] }); 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: [HostBindingDir] }] }] }); /**************************************************************************************************** * PARTIAL FILE: host_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class HostBindingDir { dirId: string; static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostBindingDir, "[hostBindingDir]", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof HostBindingDir], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: host_bindings_with_temporaries.js ****************************************************************************************************/ import { Directive, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class HostBindingDir { } HostBindingDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostBindingDir, isStandalone: false, selector: "[hostBindingDir]", host: { properties: { "id": "getData()?.id" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{ type: Directive, args: [{ selector: '[hostBindingDir]', host: { '[id]': 'getData()?.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: [HostBindingDir] }); 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: [HostBindingDir] }] }] }); /**************************************************************************************************** * PARTIAL FILE: host_bindings_with_temporaries.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class HostBindingDir { getData?: () => { id: number; }; static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostBindingDir, "[hostBindingDir]", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof HostBindingDir], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: host_class_bindings_with_temporaries.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class HostBindingDir { constructor() { this.value = null; } } HostBindingDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostBindingDir, isStandalone: true, selector: "[hostBindingDir]", host: { properties: { "class.a": "value ?? \"class-a\"", "class.b": "value ?? \"class-b\"" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{ type: Directive, args: [{ selector: '[hostBindingDir]', host: { '[class.a]': 'value ?? "class-a"', '[class.b]': 'value ?? "class-b"', }, }] }] }); /**************************************************************************************************** * PARTIAL FILE: host_class_bindings_with_temporaries.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class HostBindingDir { value: number | null; static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostBindingDir, "[hostBindingDir]", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: host_style_bindings_with_temporaries.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class HostBindingDir { constructor() { this.value = null; } } HostBindingDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHO
{ "end_byte": 7808, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js_7809_15406
DER", ngImport: i0, type: HostBindingDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostBindingDir, isStandalone: true, selector: "[hostBindingDir]", host: { properties: { "style.fontSize": "value ?? \"15px\"", "style.fontWeight": "value ?? \"bold\"" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{ type: Directive, args: [{ selector: '[hostBindingDir]', host: { '[style.fontSize]': 'value ?? "15px"', '[style.fontWeight]': 'value ?? "bold"', }, }] }] }); /**************************************************************************************************** * PARTIAL FILE: host_style_bindings_with_temporaries.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class HostBindingDir { value: number | null; static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostBindingDir, "[hostBindingDir]", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: host_bindings_with_pure_functions.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class HostBindingComp { constructor() { this.id = 'some id'; } } HostBindingComp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingComp, deps: [], target: i0.ɵɵFactoryTarget.Component }); HostBindingComp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostBindingComp, isStandalone: false, selector: "host-binding-comp", host: { properties: { "id": "[\"red\", id]" } }, ngImport: i0, template: '', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingComp, decorators: [{ type: Component, args: [{ selector: 'host-binding-comp', host: { '[id]': '["red", id]' }, 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: [HostBindingComp] }); 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: [HostBindingComp] }] }] }); /**************************************************************************************************** * PARTIAL FILE: host_bindings_with_pure_functions.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class HostBindingComp { id: string; static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingComp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<HostBindingComp, "host-binding-comp", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof HostBindingComp], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: host_attribute_bindings.js ****************************************************************************************************/ import { Directive, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class HostAttributeDir { constructor() { this.required = true; } } HostAttributeDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostAttributeDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostAttributeDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostAttributeDir, isStandalone: false, selector: "[hostAttributeDir]", host: { properties: { "attr.required": "required" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostAttributeDir, decorators: [{ type: Directive, args: [{ selector: '[hostAttributeDir]', host: { '[attr.required]': 'required' }, 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: [HostAttributeDir] }); 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: [HostAttributeDir] }] }] }); /**************************************************************************************************** * PARTIAL FILE: host_attribute_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class HostAttributeDir { required: boolean; static ɵfac: i0.ɵɵFactoryDeclaration<HostAttributeDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostAttributeDir, "[hostAttributeDir]", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof HostAttributeDir], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: host_attributes.js ****************************************************************************************************/ import { Directive, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class HostAttributeDir { } HostAttributeDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostAttributeDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostAttributeDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostAttributeDir, isStandalone: false, selector: "[hostAttributeDir]", host: { a
{ "end_byte": 15406, "start_byte": 7809, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js_15407_22886
tributes: { "aria-label": "label" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostAttributeDir, decorators: [{ type: Directive, args: [{ selector: '[hostAttributeDir]', host: { 'aria-label': '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: [HostAttributeDir] }); 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: [HostAttributeDir] }] }] }); /**************************************************************************************************** * PARTIAL FILE: host_attributes.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class HostAttributeDir { static ɵfac: i0.ɵɵFactoryDeclaration<HostAttributeDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostAttributeDir, "[hostAttributeDir]", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof HostAttributeDir], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: host_attributes_with_classes_and_styles.js ****************************************************************************************************/ import { Component, Directive, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class HostAttributeComp { } HostAttributeComp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostAttributeComp, deps: [], target: i0.ɵɵFactoryTarget.Component }); HostAttributeComp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostAttributeComp, isStandalone: false, selector: "my-host-attribute-component", host: { attributes: { "title": "hello there from component" }, styleAttribute: "opacity:1" }, ngImport: i0, template: '...', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostAttributeComp, decorators: [{ type: Component, args: [{ selector: 'my-host-attribute-component', template: '...', host: { 'title': 'hello there from component', 'style': 'opacity:1' }, standalone: false }] }] }); export class HostAttributeDir { } HostAttributeDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostAttributeDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostAttributeDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostAttributeDir, isStandalone: false, selector: "[hostAttributeDir]", host: { attributes: { "title": "hello there from directive" }, properties: { "style.opacity": "true", "class.three": "true" }, styleAttribute: "width: 200px; height: 500px", classAttribute: "one two" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostAttributeDir, decorators: [{ type: Directive, args: [{ selector: '[hostAttributeDir]', host: { 'style': 'width: 200px; height: 500px', '[style.opacity]': 'true', 'class': 'one two', '[class.three]': 'true', 'title': 'hello there from directive', }, 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: [HostAttributeComp, HostAttributeDir] }); 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: [HostAttributeComp, HostAttributeDir] }] }] }); /**************************************************************************************************** * PARTIAL FILE: host_attributes_with_classes_and_styles.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class HostAttributeComp { static ɵfac: i0.ɵɵFactoryDeclaration<HostAttributeComp, never>; static ɵcmp: i0.ɵɵComponentDeclaration<HostAttributeComp, "my-host-attribute-component", never, {}, {}, never, never, false, never>; } export declare class HostAttributeDir { static ɵfac: i0.ɵɵFactoryDeclaration<HostAttributeDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostAttributeDir, "[hostAttributeDir]", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof HostAttributeComp, typeof HostAttributeDir], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: chain_multiple_property_bindings.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class MyDirective { constructor() { this.myTitle = 'hello'; this.myId = 'special-directive'; } } MyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyDirective, isStandalone: false, selector: "[my-dir]", host: { properties: { "title": "myTitle", "tabindex": "1", "id": "myId" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, decorators: [{ type: Directive, args: [{ selector: '[my-dir]', host: { '[title]': 'myTitle', '[tabindex]': '1', '[id]': 'myI
{ "end_byte": 22886, "start_byte": 15407, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js_22887_31634
' }, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_multiple_property_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyDirective { myTitle: string; myId: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MyDirective, "[my-dir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_property_bindings_all.js ****************************************************************************************************/ import { Directive, HostBinding } from '@angular/core'; import * as i0 from "@angular/core"; export class MyDirective { constructor() { this.myTitle = 'hello'; this.myId = 'special-directive'; } } MyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyDirective, isStandalone: false, selector: "[my-dir]", host: { properties: { "tabindex": "1", "title": "this.myTitle", "id": "this.myId" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, decorators: [{ type: Directive, args: [{ selector: '[my-dir]', host: { '[tabindex]': '1' }, standalone: false }] }], propDecorators: { myTitle: [{ type: HostBinding, args: ['title'] }], myId: [{ type: HostBinding, args: ['id'] }] } }); /**************************************************************************************************** * PARTIAL FILE: chain_property_bindings_all.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyDirective { myTitle: string; myId: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MyDirective, "[my-dir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_property_bindings_mixed.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class MyDirective { } MyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyDirective, isStandalone: false, selector: "[my-dir]", host: { properties: { "title": "\"my title\"", "attr.tabindex": "1", "id": "\"my-id\"" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, decorators: [{ type: Directive, args: [{ selector: '[my-dir]', host: { '[title]': '"my title"', '[attr.tabindex]': '1', '[id]': '"my-id"' }, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_property_bindings_mixed.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyDirective { static ɵfac: i0.ɵɵFactoryDeclaration<MyDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MyDirective, "[my-dir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_synthetic_properties.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class MyDirective { constructor() { this.expandedState = 'collapsed'; this.isSmall = true; } } MyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyDirective, isStandalone: false, selector: "[my-dir]", host: { properties: { "@expand": "expandedState", "@fadeOut": "true", "@shrink": "isSmall" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, decorators: [{ type: Directive, args: [{ selector: '[my-dir]', host: { '[@expand]': 'expandedState', '[@fadeOut]': 'true', '[@shrink]': 'isSmall' }, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_synthetic_properties.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyDirective { expandedState: string; isSmall: boolean; static ɵfac: i0.ɵɵFactoryDeclaration<MyDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MyDirective, "[my-dir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_multiple_attribute_bindings.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class MyDirective { constructor() { this.myTitle = 'hello'; this.myId = 'special-directive'; } } MyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyDirective, isStandalone: false, selector: "[my-dir]", host: { properties: { "attr.title": "myTitle", "attr.tabindex": "1", "attr.id": "myId" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, decorators: [{ type: Directive, args: [{ selector: '[my-dir]', host: { '[attr.title]': 'myTitle', '[attr.tabindex]': '1', '[attr.id]': 'myId' }, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_multiple_attribute_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyDirective { myTitle: string; myId: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MyDirective, "[my-dir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_attribute_bindings_all.js ****************************************************************************************************/ import { Directive, HostBinding } from '@angular/core'; import * as i0 from "@angular/core"; export class MyDirective { constructor() { this.myTitle = 'hello'; this.myId = 'special-directive'; } } MyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ min
{ "end_byte": 31634, "start_byte": 22887, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js_31635_40014
ersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyDirective, isStandalone: false, selector: "[my-dir]", host: { properties: { "attr.tabindex": "1", "attr.title": "this.myTitle", "attr.id": "this.myId" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, decorators: [{ type: Directive, args: [{ selector: '[my-dir]', host: { '[attr.tabindex]': '1' }, standalone: false }] }], propDecorators: { myTitle: [{ type: HostBinding, args: ['attr.title'] }], myId: [{ type: HostBinding, args: ['attr.id'] }] } }); /**************************************************************************************************** * PARTIAL FILE: chain_attribute_bindings_all.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyDirective { myTitle: string; myId: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MyDirective, "[my-dir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_attribute_bindings_mixed.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class MyDirective { } MyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyDirective, isStandalone: false, selector: "[my-dir]", host: { properties: { "attr.title": "\"my title\"", "tabindex": "1", "attr.id": "\"my-id\"" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, decorators: [{ type: Directive, args: [{ selector: '[my-dir]', host: { '[attr.title]': '"my title"', '[tabindex]': '1', '[attr.id]': '"my-id"' }, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: chain_attribute_bindings_mixed.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyDirective { static ɵfac: i0.ɵɵFactoryDeclaration<MyDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MyDirective, "[my-dir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_multiple_listeners.js ****************************************************************************************************/ import { Directive, HostListener } from '@angular/core'; import * as i0 from "@angular/core"; export class MyDirective { mousedown() { } mouseup() { } click() { } } MyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyDirective, isStandalone: false, selector: "[my-dir]", host: { listeners: { "mousedown": "mousedown()", "mouseup": "mouseup()", "click": "click()" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyDirective, decorators: [{ type: Directive, args: [{ selector: '[my-dir]', host: { '(mousedown)': 'mousedown()', '(mouseup)': 'mouseup()', }, standalone: false }] }], propDecorators: { click: [{ type: HostListener, args: ['click'] }] } }); /**************************************************************************************************** * PARTIAL FILE: chain_multiple_listeners.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyDirective { mousedown(): void; mouseup(): void; click(): void; static ɵfac: i0.ɵɵFactoryDeclaration<MyDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MyDirective, "[my-dir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_synthetic_listeners.js ****************************************************************************************************/ import { Component, HostListener } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { start() { } } 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-comp", host: { listeners: { "@animation.done": "done()", "@animation.start": "start()" } }, ngImport: i0, template: '', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-comp', template: '', host: { '(@animation.done)': 'done()', }, standalone: false }] }], propDecorators: { start: [{ type: HostListener, args: ['@animation.start'] }] } }); /**************************************************************************************************** * PARTIAL FILE: chain_synthetic_listeners.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { start(): void; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-comp", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: chain_synthetic_listeners_mixed.js ****************************************************************************************************/ import { Component, HostListener } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { start() { } 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: "my-comp", host: { listeners: { "mousedown": "mousedown()", "@animation.done": "done()", "mouseup": "mouseup()", "@animation.start": "start()", "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: [{ selector: 'my-comp', template: '', host: { '(mousedown)': 'mousedown()', '(@animation.done)': 'done()', '(mouseup)'
{ "end_byte": 40014, "start_byte": 31635, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js_40015_48028
'mouseup()', }, standalone: false }] }], propDecorators: { start: [{ type: HostListener, args: ['@animation.start'] }], click: [{ type: HostListener, args: ['click'] }] } }); /**************************************************************************************************** * PARTIAL FILE: chain_synthetic_listeners_mixed.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { start(): void; click(): void; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-comp", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: host_dollar_any.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class HostBindingDir { } HostBindingDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, deps: [], target: i0.ɵɵFactoryTarget.Component }); HostBindingDir.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostBindingDir, isStandalone: false, selector: "[hostBindingDir]", host: { properties: { "style.color": "$any(\"red\")" } }, ngImport: i0, template: ``, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{ type: Component, args: [{ selector: '[hostBindingDir]', host: { '[style.color]': '$any("red")', }, template: ``, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: host_dollar_any.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class HostBindingDir { static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingDir, never>; static ɵcmp: i0.ɵɵComponentDeclaration<HostBindingDir, "[hostBindingDir]", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: host_bindings_primitive_names.js ****************************************************************************************************/ import { Directive, HostBinding, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class HostBindingDir { } HostBindingDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostBindingDir, isStandalone: false, selector: "[hostBindingDir]", host: { properties: { "class.a": "true", "class.b": "false", "class.c": "this.true", "class.d": "this.false", "class.e": "this.other" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{ type: Directive, args: [{ selector: '[hostBindingDir]', host: { '[class.a]': 'true', '[class.b]': 'false', }, standalone: false }] }], propDecorators: { true: [{ type: HostBinding, args: ['class.c'] }], false: [{ type: HostBinding, args: ['class.d'] }], other: [{ type: HostBinding, args: ['class.e'] }] } }); 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: [HostBindingDir] }); 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: [HostBindingDir] }] }] }); /**************************************************************************************************** * PARTIAL FILE: host_bindings_primitive_names.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class HostBindingDir { true: any; false: any; other: any; static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostBindingDir, "[hostBindingDir]", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof HostBindingDir], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: host_bindings_quoted_names.js ****************************************************************************************************/ import { Directive, HostBinding, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class HostBindingDir { } HostBindingDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostBindingDir, isStandalone: false, selector: "[hostBindingDir]", host: { properties: { "class.a": "this['is-a']", "class.b": "this['is-\"b\"']", "class.c": "this['\"is-c\"']" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{ type: Directive, args: [{ selector: '[hostBindingDir]', standalone: false }] }], propDecorators: { 'is-a': [{ type: HostBinding, args: ['class.a'] }], 'is-"b"': [{ type: HostBinding, args: ['class.b'] }], '"is-c"': [{ type: HostBinding, args: ['class.c'] }] } }); 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: [HostBindingDir] }); 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: [HostBindingDir] }] }]
{ "end_byte": 48028, "start_byte": 40015, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js_48029_55907
}); /**************************************************************************************************** * PARTIAL FILE: host_bindings_quoted_names.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class HostBindingDir { 'is-a': any; 'is-"b"': any; '"is-c"': any; static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostBindingDir, "[hostBindingDir]", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof HostBindingDir], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: sanitization.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class HostBindingDir { constructor() { this.evil = 'evil'; } } HostBindingDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostBindingDir, isStandalone: true, selector: "[hostBindingDir]", host: { properties: { "innerHtml": "evil", "href": "evil", "attr.style": "evil", "src": "evil", "sandbox": "evil" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{ type: Directive, args: [{ selector: '[hostBindingDir]', host: { '[innerHtml]': 'evil', '[href]': 'evil', '[attr.style]': 'evil', '[src]': 'evil', '[sandbox]': 'evil', }, }] }] }); export class HostBindingDir2 { constructor() { this.evil = 'evil'; } } HostBindingDir2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir2, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostBindingDir2.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostBindingDir2, isStandalone: true, selector: "a", host: { properties: { "innerHtml": "evil", "href": "evil", "attr.style": "evil", "src": "evil", "sandbox": "evil" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir2, decorators: [{ type: Directive, args: [{ selector: 'a', host: { '[innerHtml]': 'evil', '[href]': 'evil', '[attr.style]': 'evil', '[src]': 'evil', '[sandbox]': 'evil', }, }] }] }); /**************************************************************************************************** * PARTIAL FILE: sanitization.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class HostBindingDir { evil: string; static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostBindingDir, "[hostBindingDir]", never, {}, {}, never, never, true, never>; } export declare class HostBindingDir2 { evil: string; static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingDir2, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostBindingDir2, "a", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: security_sensitive_constant_attributes.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class HostBindingDir { } HostBindingDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostBindingDir, isStandalone: true, selector: "[hostBindingDir]", host: { attributes: { "src": "trusted", "srcdoc": "trusted" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{ type: Directive, args: [{ selector: '[hostBindingDir]', host: { 'src': 'trusted', 'srcdoc': 'trusted' }, }] }] }); export class HostBindingDir2 { } HostBindingDir2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir2, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostBindingDir2.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostBindingDir2, isStandalone: true, selector: "img", host: { attributes: { "src": "trusted", "srcdoc": "trusted" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir2, decorators: [{ type: Directive, args: [{ selector: 'img', host: { 'src': 'trusted', 'srcdoc': 'trusted' }, }] }] }); /**************************************************************************************************** * PARTIAL FILE: security_sensitive_constant_attributes.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class HostBindingDir { static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostBindingDir, "[hostBindingDir]", never, {}, {}, never, never, true, never>; } export declare class HostBindingDir2 { static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingDir2, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostBindingDir2, "img", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: security_sensitive_style_bindings.js ****************************************************************************************************/ import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; export class HostBindingDir { constructor() { this.imgUrl = 'url(foo.jpg)'; this.styles = { backgroundImage: this.imgUrl }; } } HostBindingDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HostBindingDir, isStandalone: true, selector: "[hostBindingDir]", host: { properties: { "style.background-image": "imgUrl", "style": "styles" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{
{ "end_byte": 55907, "start_byte": 48029, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js_55908_64033
type: Directive, args: [{ selector: '[hostBindingDir]', host: { '[style.background-image]': 'imgUrl', '[style]': 'styles' }, }] }] }); /**************************************************************************************************** * PARTIAL FILE: security_sensitive_style_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class HostBindingDir { imgUrl: string; styles: { backgroundImage: string; }; static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingDir, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HostBindingDir, "[hostBindingDir]", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: host_listeners.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", host: { listeners: { "document:dragover": "foo($event)" } }, ngImport: i0, template: ` `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-cmp', host: { '(document:dragover)': 'foo($event)', }, template: ` ` }] }] }); /**************************************************************************************************** * PARTIAL FILE: host_listeners.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { foo: any; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-cmp", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: host_with_ts_expression_node.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export function getBar() { console.log('This function cannot be extracted.'); return `${Math.random()}`; } export const BAR_CONST = getBar(); 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", host: { attributes: { "foo": BAR_CONST } }, ngImport: i0, template: ``, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-cmp', host: { 'foo': BAR_CONST, }, template: `` }] }] }); /**************************************************************************************************** * PARTIAL FILE: host_with_ts_expression_node.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare function getBar(): string; export declare const BAR_CONST: string; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-cmp", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: deceptive_attrs.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-comp", host: { attributes: { "class.is-compact": "false", "style.width": "0", "attr.tabindex": "5" } }, ngImport: i0, template: '', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-comp', template: '', host: { ['class.is-compact']: 'false', ['style.width']: '0', ['attr.tabindex']: '5', } }] }] }); export class MyComponent2 { } MyComponent2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent2, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent2.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent2, isStandalone: true, selector: "my-comp-2", host: { properties: { "class.is-compact": "false", "style.width": "0", "attr.tabindex": "5" } }, ngImport: i0, template: '', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent2, decorators: [{ type: Component, args: [{ selector: 'my-comp-2', template: '', host: { '[class.is-compact]': 'false', '[style.width]': '0', '[attr.tabindex]': '5', } }] }] }); /**************************************************************************************************** * PARTIAL FILE: deceptive_attrs.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-comp", never, {}, {}, never, never, true, never>; } export declare class MyComponent2 { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent2, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent2, "my-comp-2", never, {}, {}, never, never, true, never>; }
{ "end_byte": 64033, "start_byte": 55908, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_style_bindings_with_temporaries.js_0_343
hostBindings: function HostBindingDir_HostBindings(rf, ctx) { if (rf & 2) { let $tmp_0$; let $tmp_1$; $r3$.ɵɵstyleProp("font-size", ($tmp_0$ = ctx.value) !== null && $tmp_0$ !== undefined ? $tmp_0$ : "15px") ("font-weight", ($tmp_1$ = ctx.value) !== null && $tmp_1$ !== undefined ? $tmp_1$ : "bold"); } }
{ "end_byte": 343, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_style_bindings_with_temporaries.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/deceptive_attrs.ts_0_420
import {Component} from '@angular/core'; @Component({ selector: 'my-comp', template: '', host: { ['class.is-compact']: 'false', ['style.width']: '0', ['attr.tabindex']: '5', } }) export class MyComponent { } @Component({ selector: 'my-comp-2', template: '', host: { '[class.is-compact]': 'false', '[style.width]': '0', '[attr.tabindex]': '5', } }) export class MyComponent2 { }
{ "end_byte": 420, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/deceptive_attrs.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/deceptive_attrs.pipeline.js_0_284
hostAttrs: ["class.is-compact", "false", "style.width", "0", "attr.tabindex", "5"], … hostBindings: function MyComponent2_HostBindings(rf, ctx) { if (rf & 2) { i0.ɵɵattribute("tabindex", 5); i0.ɵɵstyleProp("width", 0); i0.ɵɵclassProp("is-compact", false); } }
{ "end_byte": 284, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/deceptive_attrs.pipeline.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_synthetic_listeners.ts_0_276
import {Component, HostListener} from '@angular/core'; @Component({ selector: 'my-comp', template: '', host: { '(@animation.done)': 'done()', }, standalone: false }) export class MyComponent { @HostListener('@animation.start') start() { } }
{ "end_byte": 276, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_synthetic_listeners.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_multiple_property_bindings.ts_0_253
import {Directive} from '@angular/core'; @Directive({ selector: '[my-dir]', host: { '[title]': 'myTitle', '[tabindex]': '1', '[id]': 'myId' }, standalone: false }) export class MyDirective { myTitle = 'hello'; myId = 'special-directive'; }
{ "end_byte": 253, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_multiple_property_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_property_bindings_all.ts_0_270
import {Directive, HostBinding} from '@angular/core'; @Directive({ selector: '[my-dir]', host: { '[tabindex]': '1' }, standalone: false }) export class MyDirective { @HostBinding('title') myTitle = 'hello'; @HostBinding('id') myId = 'special-directive'; }
{ "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/host_bindings/chain_property_bindings_all.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_multiple_listeners.js_0_368
hostBindings: function MyDirective_HostBindings(rf, ctx) { if (rf & 1) { $r3$.ɵɵlistener("mousedown", function MyDirective_mousedown_HostBindingHandler() { return ctx.mousedown(); })("mouseup", function MyDirective_mouseup_HostBindingHandler() { return ctx.mouseup(); })("click", function MyDirective_click_HostBindingHandler() { return ctx.click(); }); } }
{ "end_byte": 368, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_multiple_listeners.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_synthetic_listeners_mixed.js_0_627
hostBindings: function MyComponent_HostBindings(rf, ctx) { if (rf & 1) { $r3$.ɵɵsyntheticHostListener("@animation.done", function MyComponent_animation_animation_done_HostBindingHandler() { return ctx.done(); })("@animation.start", function MyComponent_animation_animation_start_HostBindingHandler() { return ctx.start(); }); $r3$.ɵɵlistener("mousedown", function MyComponent_mousedown_HostBindingHandler() { return ctx.mousedown(); })("mouseup", function MyComponent_mouseup_HostBindingHandler() { return ctx.mouseup(); })("click", function MyComponent_click_HostBindingHandler() { return ctx.click(); }); } }
{ "end_byte": 627, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_synthetic_listeners_mixed.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_multiple_attribute_bindings.js_0_164
hostBindings: function MyDirective_HostBindings(rf, ctx) { … if (rf & 2) { $r3$.ɵɵattribute("title", ctx.myTitle)("tabindex", 1)("id", ctx.myId); } }
{ "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/host_bindings/chain_multiple_attribute_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_synthetic_properties.js_0_195
hostBindings: function MyDirective_HostBindings(rf, ctx) { … if (rf & 2) { $r3$.ɵɵsyntheticHostProperty("@expand", ctx.expandedState)("@fadeOut", true)("@shrink", ctx.isSmall); } }
{ "end_byte": 195, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_synthetic_properties.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_with_temporaries.ts_0_302
import {Directive, NgModule} from '@angular/core'; @Directive({ selector: '[hostBindingDir]', host: { '[id]': 'getData()?.id' }, standalone: false }) export class HostBindingDir { getData?: () => { id: number }; } @NgModule({declarations: [HostBindingDir]}) export class MyModule { }
{ "end_byte": 302, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_with_temporaries.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings.ts_0_280
import {Directive, HostBinding, NgModule} from '@angular/core'; @Directive({ selector: '[hostBindingDir]', standalone: false }) export class HostBindingDir { @HostBinding('id') dirId = 'some id'; } @NgModule({declarations: [HostBindingDir]}) export class MyModule { }
{ "end_byte": 280, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_with_pure_functions.js_1_478
const $ff$ = $v$ => ["red", $v$]; … HostBindingComp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: HostBindingComp, selectors: [["host-binding-comp"]], hostVars: 3, hostBindings: function HostBindingComp_HostBindings(rf, ctx) { if (rf & 2) { $r3$.ɵɵhostProperty("id", $r3$.ɵɵpureFunction1(1, $ff$, ctx.id)); } }, standalone: false, decls: 0, vars: 0, template: function HostBindingComp_Template(rf, ctx) {}, encapsulation: 2 });
{ "end_byte": 478, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_with_pure_functions.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/security_sensitive_style_bindings.js_0_172
hostBindings: function HostBindingDir_HostBindings(rf, ctx) { if (rf & 2) { i0.ɵɵstyleMap(ctx.styles); i0.ɵɵstyleProp("background-image", ctx.imgUrl); } }
{ "end_byte": 172, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/security_sensitive_style_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_class_bindings_with_temporaries.js_0_331
hostBindings: function HostBindingDir_HostBindings(rf, ctx) { if (rf & 2) { let $tmp_0$; let $tmp_1$; $r3$.ɵɵclassProp("a", ($tmp_0$ = ctx.value) !== null && $tmp_0$ !== undefined ? $tmp_0$ : "class-a") ("b", ($tmp_1$ = ctx.value) !== null && $tmp_1$ !== undefined ? $tmp_1$ : "class-b"); } }
{ "end_byte": 331, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_class_bindings_with_temporaries.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_property_bindings_mixed.ts_0_217
import {Directive} from '@angular/core'; @Directive({ selector: '[my-dir]', host: { '[title]': '"my title"', '[attr.tabindex]': '1', '[id]': '"my-id"' }, standalone: false }) export class MyDirective { }
{ "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/host_bindings/chain_property_bindings_mixed.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_attributes.js_1_200
HostAttributeDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ type: HostAttributeDir, selectors: [["", "hostAttributeDir", ""]], hostAttrs: ["aria-label", "label"], standalone: false });
{ "end_byte": 200, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_attributes.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_attribute_bindings_mixed.js_0_189
hostBindings: function MyDirective_HostBindings(rf, ctx) { … if (rf & 2) { $r3$.ɵɵhostProperty("tabindex", 1); $r3$.ɵɵattribute("title", "my title")("id", "my-id"); } }
{ "end_byte": 189, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_attribute_bindings_mixed.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_attribute_bindings.ts_0_293
import {Directive, NgModule} from '@angular/core'; @Directive({ selector: '[hostAttributeDir]', host: { '[attr.required]': 'required' }, standalone: false }) export class HostAttributeDir { required = true; } @NgModule({declarations: [HostAttributeDir]}) export class MyModule { }
{ "end_byte": 293, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_attribute_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_dollar_any.js_0_106
function HostBindingDir_HostBindings(rf, ctx) { if (rf & 2) { i0.ɵɵstyleProp("color", "red"); } }
{ "end_byte": 106, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_dollar_any.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_primitive_names.ts_0_431
import {Directive, HostBinding, NgModule} from '@angular/core'; @Directive({ selector: '[hostBindingDir]', host: { '[class.a]': 'true', '[class.b]': 'false', }, standalone: false }) export class HostBindingDir { @HostBinding('class.c') true: any; @HostBinding('class.d') false: any; @HostBinding('class.e') other: any; } @NgModule({declarations: [HostBindingDir]}) export class MyModule { }
{ "end_byte": 431, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_primitive_names.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/sanitization.js_0_701
hostBindings: function HostBindingDir_HostBindings(rf, ctx) { if (rf & 2) { i0.ɵɵhostProperty("innerHtml", ctx.evil, i0.ɵɵsanitizeHtml)("href", ctx.evil, i0.ɵɵsanitizeUrlOrResourceUrl)("src", ctx.evil, i0.ɵɵsanitizeUrlOrResourceUrl)("sandbox", ctx.evil, i0.ɵɵvalidateIframeAttribute); i0.ɵɵattribute("style", ctx.evil, i0.ɵɵsanitizeStyle); } } … hostBindings: function HostBindingDir2_HostBindings(rf, ctx) { if (rf & 2) { i0.ɵɵhostProperty("innerHtml", ctx.evil, i0.ɵɵsanitizeHtml)("href", ctx.evil, i0.ɵɵsanitizeUrl)("src", ctx.evil)("sandbox", ctx.evil, i0.ɵɵvalidateIframeAttribute); i0.ɵɵattribute("style", ctx.evil, i0.ɵɵsanitizeStyle); } }
{ "end_byte": 701, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/sanitization.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_attributes_with_classes_and_styles.ts_0_688
import {Component, Directive, NgModule} from '@angular/core'; @Component({ selector: 'my-host-attribute-component', template: '...', host: { 'title': 'hello there from component', 'style': 'opacity:1' }, standalone: false }) export class HostAttributeComp { } @Directive({ selector: '[hostAttributeDir]', host: { 'style': 'width: 200px; height: 500px', '[style.opacity]': 'true', 'class': 'one two', '[class.three]': 'true', 'title': 'hello there from directive', }, standalone: false }) export class HostAttributeDir { } @NgModule({declarations: [HostAttributeComp, HostAttributeDir]}) export class MyModule { }
{ "end_byte": 688, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_attributes_with_classes_and_styles.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_style_bindings_with_temporaries.ts_0_254
import {Directive} from '@angular/core'; @Directive({ selector: '[hostBindingDir]', host: { '[style.fontSize]': 'value ?? "15px"', '[style.fontWeight]': 'value ?? "bold"', }, }) export class HostBindingDir { value: number|null = null; }
{ "end_byte": 254, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_style_bindings_with_temporaries.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_multiple_property_bindings.js_0_167
hostBindings: function MyDirective_HostBindings(rf, ctx) { … if (rf & 2) { $r3$.ɵɵhostProperty("title", ctx.myTitle)("tabindex", 1)("id", ctx.myId); } }
{ "end_byte": 167, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_multiple_property_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_synthetic_listeners.js_0_340
hostBindings: function MyComponent_HostBindings(rf, ctx) { if (rf & 1) { $r3$.ɵɵsyntheticHostListener("@animation.done", function MyComponent_animation_animation_done_HostBindingHandler() { return ctx.done(); })("@animation.start", function MyComponent_animation_animation_start_HostBindingHandler() { return ctx.start(); }); } }
{ "end_byte": 340, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_synthetic_listeners.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_multiple_listeners.ts_0_314
import {Directive, HostListener} from '@angular/core'; @Directive({ selector: '[my-dir]', host: { '(mousedown)': 'mousedown()', '(mouseup)': 'mouseup()', }, standalone: false }) export class MyDirective { mousedown() {} mouseup() {} @HostListener('click') click() { } }
{ "end_byte": 314, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_multiple_listeners.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_property_bindings_all.js_0_167
hostBindings: function MyDirective_HostBindings(rf, ctx) { … if (rf & 2) { $r3$.ɵɵhostProperty("tabindex", 1)("title", ctx.myTitle)("id", ctx.myId); } }
{ "end_byte": 167, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_property_bindings_all.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_multiple_attribute_bindings.ts_0_272
import {Directive} from '@angular/core'; @Directive({ selector: '[my-dir]', host: { '[attr.title]': 'myTitle', '[attr.tabindex]': '1', '[attr.id]': 'myId' }, standalone: false }) export class MyDirective { myTitle = 'hello'; myId = 'special-directive'; }
{ "end_byte": 272, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_multiple_attribute_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_synthetic_listeners_mixed.ts_0_390
import {Component, HostListener} from '@angular/core'; @Component({ selector: 'my-comp', template: '', host: { '(mousedown)': 'mousedown()', '(@animation.done)': 'done()', '(mouseup)': 'mouseup()', }, standalone: false }) export class MyComponent { @HostListener('@animation.start') start() { } @HostListener('click') click() { } }
{ "end_byte": 390, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_synthetic_listeners_mixed.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_synthetic_properties.ts_0_274
import {Directive} from '@angular/core'; @Directive({ selector: '[my-dir]', host: { '[@expand]': 'expandedState', '[@fadeOut]': 'true', '[@shrink]': 'isSmall' }, standalone: false }) export class MyDirective { expandedState = 'collapsed'; isSmall = true; }
{ "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/host_bindings/chain_synthetic_properties.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_with_temporaries.js_1_387
HostBindingDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ type: HostBindingDir, selectors: [["", "hostBindingDir", ""]], hostVars: 1, hostBindings: function HostBindingDir_HostBindings(rf, ctx) { if (rf & 2) { let $tmp0$; $r3$.ɵɵhostProperty("id", ($tmp0$ = ctx.getData()) == null ? null : $tmp0$.id); } }, standalone: false });
{ "end_byte": 387, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_with_temporaries.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_quoted_names.ts_0_361
import {Directive, HostBinding, NgModule} from '@angular/core'; @Directive({ selector: '[hostBindingDir]', standalone: false }) export class HostBindingDir { @HostBinding('class.a') 'is-a': any; @HostBinding('class.b') 'is-"b"': any; @HostBinding('class.c') '"is-c"': any; } @NgModule({declarations: [HostBindingDir]}) export class MyModule { }
{ "end_byte": 361, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_bindings_quoted_names.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/security_sensitive_constant_attributes.ts_0_289
import {Directive} from '@angular/core'; @Directive({ selector: '[hostBindingDir]', host: {'src': 'trusted', 'srcdoc': 'trusted'}, }) export class HostBindingDir { } @Directive({ selector: 'img', host: {'src': 'trusted', 'srcdoc': 'trusted'}, }) export class HostBindingDir2 { }
{ "end_byte": 289, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/security_sensitive_constant_attributes.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_listeners.js_0_217
function MyComponent_HostBindings(rf, ctx) { if (rf & 1) { i0.ɵɵlistener("dragover", function MyComponent_dragover_HostBindingHandler($event) { return ctx.foo($event); }, false, i0.ɵɵresolveDocument); } }
{ "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/host_bindings/host_listeners.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/chain_attribute_bindings_all.js_0_164
hostBindings: function MyDirective_HostBindings(rf, ctx) { … if (rf & 2) { $r3$.ɵɵattribute("tabindex", 1)("title", ctx.myTitle)("id", ctx.myId); } }
{ "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/host_bindings/chain_attribute_bindings_all.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_with_ts_expression_node_template.js_0_158
// NOTE: TODO: This is difference between Pipeline and TDB acceptable? hostAttrs: ["foo", BAR_CONST] … template: function MyComponent_Template(rf, ctx) { }
{ "end_byte": 158, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/host_with_ts_expression_node_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/empty_binding.ts_0_158
import {Component} from '@angular/core'; @Component({ selector: 'test', template: '<a [someProp]></a>', standalone: false }) export class FooCmp { }
{ "end_byte": 158, "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.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/sanitization.ts_0_394
import {Component} from '@angular/core'; @Component({ 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> ` }) export class MyComponent { evil = 'evil'; }
{ "end_byte": 394, "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.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_multiple_bindings_with_child_elements.js_0_252
template: function MyComponent_Template(rf, ctx) { … if (rf & 2) { $r3$.ɵɵproperty("title", ctx.myTitle)("id", ctx.buttonId)("tabindex", 1); $r3$.ɵɵadvance(); $r3$.ɵɵproperty("id", 1)("title", "hello")("someProp", 1 + 2); } }
{ "end_byte": 252, "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.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/synthetic_bindings_and_listeners_on_structural.ts_0_255
import {Component} from '@angular/core'; @Component({ selector: 'my-cmp', template: ` <button *ngIf="true" [@anim]="field" (@anim.start)="fn($event)"> </button> ` }) export class MyComponent { field!: any; fn!: any; }
{ "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/synthetic_bindings_and_listeners_on_structural.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_multiple_bindings_for_multiple_elements.js_0_330
template: function MyComponent_Template(rf, ctx) { … if (rf & 2) { $r3$.ɵɵproperty("title", ctx.myTitle)("id", ctx.buttonId)("tabindex", 1); $r3$.ɵɵadvance(); $r3$.ɵɵproperty("id", 1)("title", "hello")("someProp", 1 + 2); $r3$.ɵɵadvance(); $r3$.ɵɵproperty("prop", "one")("otherProp", 2); } }
{ "end_byte": 330, "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.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/special_property_remapping.js_1_225
consts: [[__AttributeMarker.Bindings__, "for"]] // ... function MyComponent_Template(rf, ctx) { if (rf & 1) { $i0$.ɵɵelement(0, "label", 0); } if (rf & 2) { $i0$.ɵɵproperty("for", ctx.forValue); } }
{ "end_byte": 225, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/special_property_remapping.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/temporary_variables.ts_0_919
import {Component, NgModule, Pipe} from '@angular/core'; @Pipe({ name: 'async', standalone: false }) export class AsyncPipe { transform(v: any): null|any {} } // 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. @Component({ template: '<button [title]="myTitle" [id]="(auth().identity() | async)?.id" [tabindex]="1"></button>', standalone: false }) export class MyComponent { myTitle = 'hello'; auth!: () => { identity(): any; }; } @NgModule({declarations: [MyComponent, AsyncPipe]}) export class MyMod { }
{ "end_byte": 919, "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.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/chain_ngtemplate_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_ngtemplate_bindings.js" }