_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/local_ref_before_listener.ts_0_333
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: ` <button (click)="onClick(user.value)">Save</button> <input #user> `, standalone: false }) export class MyComponent { onClick(v: any) {} } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 333, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/local_ref_before_listener.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/cross_element_chained_listeners_template.js_0_745
… consts: [[__AttributeMarker.Bindings__, "click", "change"], [__AttributeMarker.Bindings__, "update", "delete"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelementStart(0, "div", 0); $r3$.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener() { return ctx.click(); })("change", function MyComponent_Template_div_change_0_listener() { return ctx.change(); }); $r3$.ɵɵelementEnd(); $r3$.ɵɵelementStart(1, "some-comp", 1); $r3$.ɵɵlistener("update", function MyComponent_Template_some_comp_update_1_listener() { return ctx.update(); })("delete", function MyComponent_Template_some_comp_delete_1_listener() { return ctx.delete(); }); $r3$.ɵɵelementEnd(); } }
{ "end_byte": 745, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/cross_element_chained_listeners_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/mixed_one_way_two_way_listener_order.js_0_655
if (rf & 1) { $r3$.ɵɵelementStart(0, "div", 0); $r3$.ɵɵtwoWayListener("aChange", function App_Template_div_aChange_0_listener($event) { $r3$.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); return $event; }); $r3$.ɵɵlistener("b", function App_Template_div_b_0_listener() { return ctx.noop(); }); $r3$.ɵɵtwoWayListener("cChange", function App_Template_div_cChange_0_listener($event) { $r3$.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); return $event; }); $r3$.ɵɵlistener("d", function App_Template_div_d_0_listener() { return ctx.noop(); }); $r3$.ɵɵelementEnd(); }
{ "end_byte": 655, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/mixed_one_way_two_way_listener_order.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_in_property_binding_template.js_0_42
… i0.ɵɵproperty("event", ctx.$event);
{ "end_byte": 42, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_in_property_binding_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/implicit_receiver_keyed_write_inside_template_template.js_0_490
function MyComponent_ng_template_0_Template(rf, $ctx$) { if (rf & 1) { const $_r3$ = $i0$.ɵɵgetCurrentView(); $i0$.ɵɵelementStart(0, "button", 1); $i0$.ɵɵlistener("click", function MyComponent_ng_template_0_Template_button_click_0_listener() { $i0$.ɵɵrestoreView($_r3$); const $ctx_2$ = $i0$.ɵɵnextContext(); return $i0$.ɵɵresetView(($ctx_2$["mes" + "sage"] = "hello")); }); $i0$.ɵɵtext(1, "Click me"); $i0$.ɵɵelementEnd(); } }
{ "end_byte": 490, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/implicit_receiver_keyed_write_inside_template_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_explicit_access_template.js_0_107
… i0.ɵɵlistener("click", function Comp_Template_div_click_0_listener() { return ctx.c(ctx.$event); });
{ "end_byte": 107, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_explicit_access_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/two_way_binding_to_signal_loop_variable.ts_0_386
import {Component, Directive, model, signal} from '@angular/core'; @Directive({ selector: '[ngModel]', }) export class NgModelDirective { ngModel = model.required<string>(); } @Component({ template: ` @for (name of names; track $index) { <input [(ngModel)]="name" /> } `, imports: [NgModelDirective], }) export class TestCmp { names = [signal('Angular')]; }
{ "end_byte": 386, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/two_way_binding_to_signal_loop_variable.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/shared_snapshot_listeners.ts_0_413
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: ` <div *ngIf="showing"> <div (click)="onClick(foo)"></div> <button (click)="onClick2(bar)"></button> </div> `, standalone: false }) export class MyComponent { onClick(name: any) {} onClick2(name: any) {} } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 413, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/shared_snapshot_listeners.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_host_listener_implicit_meaning_host_bindings.js_0_103
… i0.ɵɵlistener("click", function Dir_click_HostBindingHandler($event) { return ctx.c($event); });
{ "end_byte": 103, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_host_listener_implicit_meaning_host_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/local_ref_before_listener.pipeline.js_0_791
… MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors: [["my-component"]], standalone: false, decls: 4, vars: 0, consts: [["user", ""], [__AttributeMarker.Bindings__, "click"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { const $s$ = $r3$.ɵɵgetCurrentView(); $r3$.ɵɵelementStart(0, "button", 1); $r3$.ɵɵlistener("click", function MyComponent_Template_button_click_0_listener() { $r3$.ɵɵrestoreView($s$); const $user$ = $r3$.ɵɵreference(3); return $r3$.ɵɵresetView(ctx.onClick($user$.value)); }); $r3$.ɵɵtext(1, "Save"); $r3$.ɵɵelementEnd(); $r3$.ɵɵelement(2, "input", null, 0); } }, encapsulation: 2 });
{ "end_byte": 791, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/local_ref_before_listener.pipeline.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/same_element_chained_listeners.ts_0_311
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: `<div (click)="click()" (change)="change()"></div>`, standalone: false }) export class MyComponent { click() {} change() {} } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 311, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/same_element_chained_listeners.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/has_event_arg_host_listener.ts_0_169
import {Directive, HostListener} from '@angular/core'; @Directive() export class MyComponent { @HostListener('click', ['$event.target']) click(target: any) { } }
{ "end_byte": 169, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/has_event_arg_host_listener.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/simple_two_way.ts_0_539
import {Component, Directive, EventEmitter, Input, NgModule, Output} from '@angular/core'; @Component({ selector: 'test-cmp', template: 'Name: <input [(ngModel)]="name">', standalone: false }) export class TestCmp { name: string = ''; } @Directive({ selector: '[ngModel]', standalone: false }) export class NgModelDirective { @Input() ngModel: string = ''; @Output() ngModelChanges: EventEmitter<string> = new EventEmitter(); } @NgModule({declarations: [TestCmp, NgModelDirective]}) export class AppModule { }
{ "end_byte": 539, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/simple_two_way.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_in_property_binding.ts_0_357
import {Component, Directive, Input, NgModule} from '@angular/core'; @Directive({ selector: 'div', standalone: false }) export class DivDir { @Input() event!: any; } @Component({ template: '<div [event]="$event"></div>', standalone: false }) class Comp { $event = 1; } @NgModule({declarations: [Comp, DivDir]}) export class MyMod { }
{ "end_byte": 357, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_in_property_binding.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/has_event_arg_host_listener_host_bindings.js_0_219
… hostBindings: function MyComponent_HostBindings(rf, ctx) { if (rf & 1) { i0.ɵɵlistener("click", function MyComponent_click_HostBindingHandler($event) { return ctx.click($event.target); }); } }
{ "end_byte": 219, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/has_event_arg_host_listener_host_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/two_way_binding_to_signal_loop_variable_template.js_0_793
function TestCmp_For_1_Template(rf, ctx) { if (rf & 1) { const $_r1$ = $r3$.ɵɵgetCurrentView(); $r3$.ɵɵelementStart(0, "input", 1); $r3$.ɵɵtwoWayListener("ngModelChange", function TestCmp_For_1_Template_input_ngModelChange_0_listener($event) { const $name_r2$ = $r3$.ɵɵrestoreView($_r1$).$implicit; $r3$.ɵɵtwoWayBindingSet($name_r2$, $event); return $r3$.ɵɵresetView($event); }); $r3$.ɵɵelementEnd(); } if (rf & 2) { const $name_r2$ = ctx.$implicit; $r3$.ɵɵtwoWayProperty("ngModel", $name_r2$); } } … function TestCmp_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵrepeaterCreate(0, TestCmp_For_1_Template, 1, 1, "input", 0, $r3$.ɵɵrepeaterTrackByIndex); } if (rf & 2) { $r3$.ɵɵrepeater(ctx.names); } }
{ "end_byte": 793, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/two_way_binding_to_signal_loop_variable_template.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/multiple_statements.ts_0_275
import {Component} from '@angular/core'; @Component({ selector: 'my-component', host: {'(click)': '$event.preventDefault(); $event.target.blur()'}, template: ` <div (click)="$event.preventDefault(); $event.target.blur()"></div> ` }) export class MyComponent { }
{ "end_byte": 275, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/multiple_statements.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/implicit_receiver_keyed_write_inside_template.ts_0_374
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: ` <ng-template #template> <button (click)="this['mes' + 'sage'] = 'hello'">Click me</button> </ng-template> `, standalone: false }) export class MyComponent { message = ''; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 374, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/implicit_receiver_keyed_write_inside_template.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_explicit_access.ts_0_183
import {Component} from '@angular/core'; @Component({ template: '<div (click)="c(this.$event)"></div>', standalone: false }) class Comp { $event = {}; c(value: {}) {} }
{ "end_byte": 183, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_explicit_access.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/duplicate_style_bindings.ts_0_201
import {Component} from '@angular/core'; @Component({ selector: 'my-component', template: ` <div style="width: 1px; width: 10px;" class="cls1 cls1"></div> `, }) export class MyComponent { }
{ "end_byte": 201, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/duplicate_style_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/colon_style.ts_0_174
import {Component} from '@angular/core'; @Component({ selector: 'my-component', template: ` <div style=":root {color: red;}"></div> ` }) export class MyComponent { }
{ "end_byte": 174, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/colon_style.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots.js_0_765
// ... decls: 1, vars: 3, template: function MyComponentWithInterpolation_Template(rf, $ctx$) { if (rf & 1) { $r3$.ɵɵelement(0, "div"); } if (rf & 2) { $r3$.ɵɵclassMapInterpolate1("foo foo-", $ctx$.fooId, ""); } } // ... decls: 1, vars: 4, template: function MyComponentWithMuchosInterpolation_Template(rf, $ctx$) { if (rf & 1) { $r3$.ɵɵelement(0, "div"); } if (rf & 2) { $r3$.ɵɵclassMapInterpolate2("foo foo-", $ctx$.fooId, "-", $ctx$.fooUsername, ""); } } // ... decls: 1, vars: 2, template: function MyComponentWithoutInterpolation_Template(rf, $ctx$) { if (rf & 1) { $r3$.ɵɵelement(0, "div"); } if (rf & 2) { $r3$.ɵɵclassMap($ctx$.exp); } }
{ "end_byte": 765, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/empty_style_bindings.ts_0_256
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: `<div [style.color]></div>`, standalone: false }) export class MyComponent { } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 256, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/empty_style_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding.ts_0_328
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: `<div [style]="myStyleExp"></div>`, standalone: false }) export class MyComponent { myStyleExp = [{color: 'red'}, {color: 'blue', duration: 1000}] } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 328, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_ordering.js_0_382
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors: [["my-component"]], standalone: false, decls: 1, vars: 2, template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelement(0, "div"); } if (rf & 2) { $r3$.ɵɵstyleProp("background-image", ctx.myImage); } }, encapsulation: 2 });
{ "end_byte": 382, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_ordering.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding_suffixed.js_1_174
template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $r3$.ɵɵelement(0, "div"); } if (rf & 2) { $r3$.ɵɵstyleProp("font-size", 12, "px"); } }
{ "end_byte": 174, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding_suffixed.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots_interpolations.js_0_628
// ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors:[["my-component"]], standalone: false, decls: 1, vars: 7, consts: [[__AttributeMarker.Styles__, "opacity", "1"]], template: function MyComponent_Template(rf, $ctx$) { if (rf & 1) { $r3$.ɵɵelement(0, "div", 0); } if (rf & 2) { $r3$.ɵɵstyleMap($ctx$.myStyleExp); $r3$.ɵɵstyleProp("width", $ctx$.myWidth)("height", $ctx$.myHeight); $r3$.ɵɵattribute("style", "border-width: 10px", $r3$.ɵɵsanitizeStyle); } }, encapsulation: 2 });
{ "end_byte": 628, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots_interpolations.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js_0_2347
/**************************************************************************************************** * PARTIAL FILE: style_binding.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.myStyleExp = [{ color: 'red' }, { color: 'blue', duration: 1000 }]; } } 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 [style]="myStyleExp"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: `<div [style]="myStyleExp"></div>`, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: style_binding.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { myStyleExp: ({ color: string; duration?: undefined; } | { color: strin
{ "end_byte": 2347, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js_2348_9786
; duration: number; })[]; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: binding_slots.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponentWithInterpolation { constructor() { this.fooId = '123'; } } MyComponentWithInterpolation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponentWithInterpolation, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponentWithInterpolation.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponentWithInterpolation, isStandalone: false, selector: "my-component-with-interpolation", ngImport: i0, template: ` <div class="foo foo-{{ fooId }}"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponentWithInterpolation, decorators: [{ type: Component, args: [{ selector: 'my-component-with-interpolation', template: ` <div class="foo foo-{{ fooId }}"></div> `, standalone: false }] }] }); export class MyComponentWithMuchosInterpolation { constructor() { this.fooId = '123'; this.fooUsername = 'superfoo'; } } MyComponentWithMuchosInterpolation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponentWithMuchosInterpolation, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponentWithMuchosInterpolation.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponentWithMuchosInterpolation, isStandalone: false, selector: "my-component-with-muchos-interpolation", ngImport: i0, template: ` <div class="foo foo-{{ fooId }}-{{ fooUsername }}"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponentWithMuchosInterpolation, decorators: [{ type: Component, args: [{ selector: 'my-component-with-muchos-interpolation', template: ` <div class="foo foo-{{ fooId }}-{{ fooUsername }}"></div> `, standalone: false }] }] }); export class MyComponentWithoutInterpolation { constructor() { this.exp = 'bar'; } } MyComponentWithoutInterpolation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponentWithoutInterpolation, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponentWithoutInterpolation.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponentWithoutInterpolation, isStandalone: false, selector: "my-component-without-interpolation", ngImport: i0, template: ` <div [class]="exp"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponentWithoutInterpolation, decorators: [{ type: Component, args: [{ selector: 'my-component-without-interpolation', template: ` <div [class]="exp"></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: [MyComponentWithInterpolation, MyComponentWithMuchosInterpolation, MyComponentWithoutInterpolation] }); 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: [ MyComponentWithInterpolation, MyComponentWithMuchosInterpolation, MyComponentWithoutInterpolation ] }] }] }); /**************************************************************************************************** * PARTIAL FILE: binding_slots.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponentWithInterpolation { fooId: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponentWithInterpolation, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponentWithInterpolation, "my-component-with-interpolation", never, {}, {}, never, never, false, never>; } export declare class MyComponentWithMuchosInterpolation { fooId: string; fooUsername: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponentWithMuchosInterpolation, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponentWithMuchosInterpolation, "my-component-with-muchos-interpolation", never, {}, {}, never, never, false, never>; } export declare class MyComponentWithoutInterpolation { exp: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponentWithoutInterpolation, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponentWithoutInterpolation, "my-component-without-interpolation", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponentWithInterpolation, typeof MyComponentWithMuchosInterpolation, typeof MyComponentWithoutInterpolation], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: binding_slots_interpolations.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.myStyleExp = [{ color: 'red' }, { color: 'blue', duration: 1000 }]; this.myWidth = '100px'; this.myHeight = '100px'; } } 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: fa
{ "end_byte": 9786, "start_byte": 2348, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js_9787_11919
se, selector: "my-component", ngImport: i0, template: `<div style="opacity:1" [attr.style]="'border-width: 10px'" [style.width]="myWidth" [style]="myStyleExp" [style.height]="myHeight"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: `<div style="opacity:1" [attr.style]="'border-width: 10px'" [style.width]="myWidth" [style]="myStyleExp" [style.height]="myHeight"></div>`, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: binding_slots_interpolations.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { myStyleExp: ({ color: string; duration?: undefined; } | { color: string; duration: number; })[]; myWidth: string; myHeight: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵC
{ "end_byte": 11919, "start_byte": 9787, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js_11919_18088
omponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: style_ordering.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.myImage = 'url(foo.jpg)'; } } 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 [style.background-image]="myImage"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: `<div [style.background-image]="myImage"></div>`, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: style_ordering.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { myImage: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: style_binding_suffixed.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "my-component", ngImport: i0, template: `<div [style.font-size.px]="12"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: `<div [style.font-size.px]="12"></div>`, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: style_binding_suffixed.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: empty_style_bindings.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent
{ "end_byte": 18088, "start_byte": 11919, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js_18089_25525
{ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "my-component", ngImport: i0, template: `<div [style.color]></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: `<div [style.color]></div>`, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: empty_style_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: colon_style.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: true, selector: "my-component", ngImport: i0, template: ` <div style=":root {color: red;}"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: ` <div style=":root {color: red;}"></div> ` }] }] }); /**************************************************************************************************** * PARTIAL FILE: colon_style.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: duplicate_style_bindings.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: true, selector: "my-component", ngImport: i0, template: ` <div style="width: 1px; width: 10px;" class="cls1 cls1"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: ` <div style="width: 1px; width: 10px;" class="cls1 cls1"></div> `, }] }] }); /**************************************************************************************************** * PARTIAL FILE: duplicate_style_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: css_custom_properties.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "my-dir", ngImport: i0, template: ` <div [style.--camelCase]="value" [style.--kebab-case]="value" style="--camelCase: foo; --kebab-case: foo"> </div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-dir', template: ` <div [style.--camelCase]="value" [style.--kebab-case]="value" style="--camelCase: foo; --kebab-case: foo"> </div> `, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: css_custom_properties.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { value: any; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-dir", never, {}, {}, never, never, false, never>; }
{ "end_byte": 25525, "start_byte": 18089, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/css_custom_properties.js_1_392
// NOTE: It *does* mangle the camel case property in the consts array. This was pre-existing TDB behavior, but should be fixed. consts: [[2, "--camel-case", "foo", "--kebab-case", "foo"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "div", 0); } if (rf & 2) { i0.ɵɵstyleProp("--camelCase", ctx.value)("--kebab-case", ctx.value); } }
{ "end_byte": 392, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/css_custom_properties.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/empty_style_bindings.js_0_110
template: function MyComponent_Template(rf, $ctx$) { if (rf & 1) { $r3$.ɵɵelement(0, "div", 0); } }
{ "end_byte": 110, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/empty_style_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots.ts_0_918
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component-with-interpolation', template: ` <div class="foo foo-{{ fooId }}"></div> `, standalone: false }) export class MyComponentWithInterpolation { fooId = '123'; } @Component({ selector: 'my-component-with-muchos-interpolation', template: ` <div class="foo foo-{{ fooId }}-{{ fooUsername }}"></div> `, standalone: false }) export class MyComponentWithMuchosInterpolation { fooId = '123'; fooUsername = 'superfoo'; } @Component({ selector: 'my-component-without-interpolation', template: ` <div [class]="exp"></div> `, standalone: false }) export class MyComponentWithoutInterpolation { exp = 'bar'; } @NgModule({ declarations: [ MyComponentWithInterpolation, MyComponentWithMuchosInterpolation, MyComponentWithoutInterpolation ] }) export class MyModule { }
{ "end_byte": 918, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding.js_0_168
template: function MyComponent_Template(rf, $ctx$) { if (rf & 1) { $r3$.ɵɵelement(0, "div"); } if (rf & 2) { $r3$.ɵɵstyleMap($ctx$.myStyleExp); } }
{ "end_byte": 168, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_ordering.ts_0_305
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: `<div [style.background-image]="myImage"></div>`, standalone: false }) export class MyComponent { myImage = 'url(foo.jpg)'; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 305, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_ordering.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/duplicate_style_bindings.js_0_66
consts: [[1, "cls1", "cls1", 2, "width", "1px", "width", "10px"]]
{ "end_byte": 66, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/duplicate_style_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/colon_style.js_0_280
// NOTE: This is the way TemplateDefinitionBuilder behaves today, but it's crazy!! // NOTE: TODO: Should we fix it? consts: [[__AttributeMarker.Styles__, ":root {color", "red"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "div", 0); } }
{ "end_byte": 280, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/colon_style.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding_suffixed.ts_0_268
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: `<div [style.font-size.px]="12"></div>`, standalone: false }) export class MyComponent { } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 268, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding_suffixed.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots_interpolations.ts_0_555
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: `<div style="opacity:1" [attr.style]="'border-width: 10px'" [style.width]="myWidth" [style]="myStyleExp" [style.height]="myHeight"></div>`, standalone: false }) export class MyComponent { myStyleExp = [{color: 'red'}, {color: 'blue', duration: 1000}] myWidth = '100px'; myHeight = '100px'; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 555, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots_interpolations.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/css_custom_properties.ts_0_311
import {Component} from '@angular/core'; @Component({ selector: 'my-dir', template: ` <div [style.--camelCase]="value" [style.--kebab-case]="value" style="--camelCase: foo; --kebab-case: foo"> </div> `, standalone: false }) export class MyComponent { value: any; }
{ "end_byte": 311, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/css_custom_properties.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_sanitizer.js_0_314
// ... if (rf & 2) { $r3$.ɵɵstylePropInterpolate1("background", "url(", ctx.myUrl1, ")"); $r3$.ɵɵstylePropInterpolate2("border-image", "url(", ctx.myUrl2, ") ", ctx.myRepeat, " auto"); $r3$.ɵɵstylePropInterpolate3("box-shadow", "", ctx.myBoxX, " ", ctx.myBoxY, " ", ctx.myBoxWidth, " black"); } // ...
{ "end_byte": 314, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_sanitizer.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_suffixed.js_0_112
// ... if (rf & 2) { $r3$.ɵɵstylePropInterpolate2("width", "a", ctx.one, "b", ctx.two, "c", "px"); } // ...
{ "end_byte": 112, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_suffixed.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_properties.js_0_1408
// ... if (rf & 2) { $r3$.ɵɵstylePropInterpolateV("color", ["a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h", ctx.eight, "i", ctx.nine, "j"]); $r3$.ɵɵadvance(); $r3$.ɵɵstylePropInterpolate8("color", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h", ctx.eight, "i"); $r3$.ɵɵadvance(); $r3$.ɵɵstylePropInterpolate7("color", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h"); $r3$.ɵɵadvance(); $r3$.ɵɵstylePropInterpolate6("color", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g"); $r3$.ɵɵadvance(); $r3$.ɵɵstylePropInterpolate5("color", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f"); $r3$.ɵɵadvance(); $r3$.ɵɵstylePropInterpolate4("color", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e"); $r3$.ɵɵadvance(); $r3$.ɵɵstylePropInterpolate3("color", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d"); $r3$.ɵɵadvance(); $r3$.ɵɵstylePropInterpolate2("color", "a", ctx.one, "b", ctx.two, "c"); $r3$.ɵɵadvance(); $r3$.ɵɵstylePropInterpolate1("color", "a", ctx.one, "b"); $r3$.ɵɵadvance(); $r3$.ɵɵstyleProp("color", ctx.one); } // ...
{ "end_byte": 1408, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_properties.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/GOLDEN_PARTIAL.js_0_6488
/**************************************************************************************************** * PARTIAL FILE: class_interpolations.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.one = ''; this.two = ''; this.three = ''; this.four = ''; this.five = ''; this.six = ''; this.seven = ''; this.eight = ''; this.nine = ''; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: ` <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i{{nine}}j"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e"></div> <div class="a{{one}}b{{two}}c{{three}}d"></div> <div class="a{{one}}b{{two}}c"></div> <div class="a{{one}}b"></div> <div class="{{one}}"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: ` <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i{{nine}}j"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e"></div> <div class="a{{one}}b{{two}}c{{three}}d"></div> <div class="a{{one}}b{{two}}c"></div> <div class="a{{one}}b"></div> <div class="{{one}}"></div> `, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: class_interpolations.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { one: string; two: string; three: string; four: string; five: string; six: string; seven: string; eight: string; nine: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: style_properties.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.one = ''; this.two = ''; this.three = ''; this.four = ''; this.five = ''; this.six = ''; this.seven = ''; this.eight = ''; this.nine = ''; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: ` <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i{{nine}}j"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e"></div> <div style.color="a{{one}}b{{two}}c{{three}}d"></div> <div style.color="a{{one}}b{{two}}c"></div> <div style.color="a{{one}}b"></div> <div style.color="{{one}}"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: ` <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i{{nine}}j"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e"></div> <div style.color="a{{one}}b{{two}}c{{three}}d"></div> <div style.color="a{{one}}b{{two}}c"></div> <div style.color="a{{one}}b"></div> <div style.color="{{one}}"></div> `, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: style_properties.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { one: string; two: string; three: string; four: string; five: string; six: string; seven: string; eight: string; nine: string; static ɵfac: i0.ɵɵFac
{ "end_byte": 6488, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/GOLDEN_PARTIAL.js_6493_12514
eclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: style_binding_suffixed.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.one = ''; this.two = ''; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: ` <div style.width.px="a{{one}}b{{two}}c"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: ` <div style.width.px="a{{one}}b{{two}}c"></div> `, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: style_binding_suffixed.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { one: string; two: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: style_binding_sanitizer.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.myUrl1 = '...'; this.myUrl2 = '...'; this.myBoxX = '0px'; this.myBoxY = '0px'; this.myBoxWidth = '100px'; this.myRepeat = 'no-repeat'; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: ` <div style.background="url({{ myUrl1 }})" style.borderImage="url({{ myUrl2 }}) {{ myRepeat }} auto" style.boxShadow="{{ myBoxX }} {{ myBoxY }} {{ myBoxWidth }} black"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: ` <div style.background="url({{ myUrl1 }})" style.borderImage="url({{ myUrl2 }}) {{ myRepeat }} auto" style.boxShadow="{{ myBoxX }} {{ myBoxY }} {{ myBoxWidth }} black"></div> `, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: style_binding_sanitizer.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { myUrl1: string; myUrl2: string; myBoxX: string; myBoxY: string; myBoxWidth: string; myRepeat: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: style_binding_important.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.one = ''; this.two = ''; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: ` <div style.width!important="a{{one}}b{{two}}c"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: ` <div style.width!important="a{{one}}b{{two}}c"></div> `, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: style_binding_important.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { one: string; two: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; }
{ "end_byte": 12514, "start_byte": 6493, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/class_interpolations.ts_0_909
import {Component} from '@angular/core'; @Component({ template: ` <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i{{nine}}j"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f"></div> <div class="a{{one}}b{{two}}c{{three}}d{{four}}e"></div> <div class="a{{one}}b{{two}}c{{three}}d"></div> <div class="a{{one}}b{{two}}c"></div> <div class="a{{one}}b"></div> <div class="{{one}}"></div> `, standalone: false }) export class MyComponent { one = ''; two = ''; three = ''; four = ''; five = ''; six = ''; seven = ''; eight = ''; nine = ''; }
{ "end_byte": 909, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/class_interpolations.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_important.ts_0_212
import {Component} from '@angular/core'; @Component({ template: ` <div style.width!important="a{{one}}b{{two}}c"></div> `, standalone: false }) export class MyComponent { one = ''; two = ''; }
{ "end_byte": 212, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_important.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_sanitizer.ts_0_448
import {Component} from '@angular/core'; @Component({ template: ` <div style.background="url({{ myUrl1 }})" style.borderImage="url({{ myUrl2 }}) {{ myRepeat }} auto" style.boxShadow="{{ myBoxX }} {{ myBoxY }} {{ myBoxWidth }} black"></div> `, standalone: false }) export class MyComponent { myUrl1 = '...'; myUrl2 = '...'; myBoxX = '0px'; myBoxY = '0px'; myBoxWidth = '100px'; myRepeat = 'no-repeat'; }
{ "end_byte": 448, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_sanitizer.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_important.js_0_106
// ... if (rf & 2) { $r3$.ɵɵstylePropInterpolate2("width", "a", ctx.one, "b", ctx.two, "c"); } // ...
{ "end_byte": 106, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_important.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/class_interpolations.js_0_1308
// ... if (rf & 2) { $r3$.ɵɵclassMapInterpolateV(["a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h", ctx.eight, "i", ctx.nine, "j"]); $r3$.ɵɵadvance(); $r3$.ɵɵclassMapInterpolate8("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h", ctx.eight, "i"); $r3$.ɵɵadvance(); $r3$.ɵɵclassMapInterpolate7("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h"); $r3$.ɵɵadvance(); $r3$.ɵɵclassMapInterpolate6("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g"); $r3$.ɵɵadvance(); $r3$.ɵɵclassMapInterpolate5("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f"); $r3$.ɵɵadvance(); $r3$.ɵɵclassMapInterpolate4("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e"); $r3$.ɵɵadvance(); $r3$.ɵɵclassMapInterpolate3("a", ctx.one, "b", ctx.two, "c", ctx.three, "d"); $r3$.ɵɵadvance(); $r3$.ɵɵclassMapInterpolate2("a", ctx.one, "b", ctx.two, "c"); $r3$.ɵɵadvance(); $r3$.ɵɵclassMapInterpolate1("a", ctx.one, "b"); $r3$.ɵɵadvance(); $r3$.ɵɵclassMap(ctx.one); } // ...
{ "end_byte": 1308, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/class_interpolations.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_suffixed.ts_0_205
import {Component} from '@angular/core'; @Component({ template: ` <div style.width.px="a{{one}}b{{two}}c"></div> `, standalone: false }) export class MyComponent { one = ''; two = ''; }
{ "end_byte": 205, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_suffixed.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_properties.ts_0_969
import {Component} from '@angular/core'; @Component({ template: ` <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i{{nine}}j"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f"></div> <div style.color="a{{one}}b{{two}}c{{three}}d{{four}}e"></div> <div style.color="a{{one}}b{{two}}c{{three}}d"></div> <div style.color="a{{one}}b{{two}}c"></div> <div style.color="a{{one}}b"></div> <div style.color="{{one}}"></div> `, standalone: false }) export class MyComponent { one = ''; two = ''; three = ''; four = ''; five = ''; six = ''; seven = ''; eight = ''; nine = ''; }
{ "end_byte": 969, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_properties.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/static_bindings.js_0_555
// ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors:[["my-component"]], standalone: false, decls: 1, vars: 2, consts: [[__AttributeMarker.Classes__, "foo", __AttributeMarker.Styles__, "width", "100px"]], template: function MyComponent_Template(rf, $ctx$) { if (rf & 1) { $r3$.ɵɵelement(0, "div", 0); } if (rf & 2) { $r3$.ɵɵattribute("class", "round")("style", "height:100px", $r3$.ɵɵsanitizeStyle); } }, encapsulation: 2 });
{ "end_byte": 555, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/static_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_ordering.js_0_592
// ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ type: MyComponent, selectors:[["my-component"]], standalone: false, decls: 1, vars: 7, consts: [[__AttributeMarker.Classes__, "grape"]], template: function MyComponent_Template(rf, $ctx$) { if (rf & 1) { $r3$.ɵɵelement(0, "div", 0); } if (rf & 2) { $r3$.ɵɵclassMap($ctx$.myClassExp); $r3$.ɵɵclassProp("apple", $ctx$.yesToApple)("orange", $ctx$.yesToOrange); $r3$.ɵɵattribute("class", "banana"); } }, encapsulation: 2 });
{ "end_byte": 592, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_ordering.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/empty_class_bindings.ts_0_256
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: `<div [class.color]></div>`, standalone: false }) export class MyComponent { } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 256, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/empty_class_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/GOLDEN_PARTIAL.js_0_7334
/**************************************************************************************************** * PARTIAL FILE: class_binding.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.myClassExp = { 'foo': true }; } } 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 [class]="myClassExp"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: `<div [class]="myClassExp"></div>`, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: class_binding.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { myClassExp: { foo: boolean; }; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: class_ordering.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.myClassExp = { a: true, b: true }; this.yesToApple = true; this.yesToOrange = true; } } 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 class="grape" [attr.class]="'banana'" [class.apple]="yesToApple" [class]="myClassExp" [class.orange]="yesToOrange"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: `<div class="grape" [attr.class]="'banana'" [class.apple]="yesToApple" [class]="myClassExp" [class.orange]="yesToOrange"></div>`, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: class_ordering.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { myClassExp: { a: boolean; b: boolean; }; yesToApple: boolean; yesToOrange: boolean; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: static_bindings.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "my-component", ngImport: i0, template: `<div class=" foo " style="width:100px" [attr.class]="'round'" [attr.style]="'height:100px'"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: `<div class=" foo " style="width:100px" [attr.class]="'round'" [attr.style]="'height:100px'"></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
{ "end_byte": 7334, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/GOLDEN_PARTIAL.js_7335_15278
, ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: static_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: empty_class_bindings.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "my-component", ngImport: i0, template: `<div [class.color]></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: `<div [class.color]></div>`, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: empty_class_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: class_binding_on_structural.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: true, selector: "my-component", ngImport: i0, template: ` <div *ngIf="true" [class.bar]="field"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: ` <div *ngIf="true" [class.bar]="field"></div> ` }] }] }); /**************************************************************************************************** * PARTIAL FILE: class_binding_on_structural.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { field: any; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, true, never>; } /**************************************************************************************************** * PARTIAL FILE: shared_name_with_consts.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.tabIndex = 0; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: true, selector: "my-component", ngImport: i0, template: ` <div attr class="attr"></div> <div ngProjectAs="selector" class="selector"></div> <div style="width:0px" class="width"></div> <div [tabindex]="tabIndex" class="tabindex"></div> <div *ngIf="cond" class="ngIf"></div> <div aria-label="label" i18n-aria-label class="aria-label"></div> <div all ngProjectAs="all" style="all:all" [all]="all" *all="all" i18n-all class="all"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: ` <div attr class="attr"></div> <div ngProjectAs="selector" class="selector"></div> <div style="width:0px" class="width"></div> <div [tabindex]="tabIndex" class="tabindex"></div> <div *ngIf="cond" class="ngIf"></div> <div aria-label="label" i18n-aria-label class="aria-label"></div> <div all ngProjectAs="all" style="all:all" [all]="all" *all="all" i18n-all class="all"></div> ` }] }] }); /**************************************************************************************************** * PARTIAL FILE: shared_name_with_consts.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { tabIndex: number; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, true, never>; }
{ "end_byte": 15278, "start_byte": 7335, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding.js_0_168
template: function MyComponent_Template(rf, $ctx$) { if (rf & 1) { $r3$.ɵɵelement(0, "div"); } if (rf & 2) { $r3$.ɵɵclassMap($ctx$.myClassExp); } }
{ "end_byte": 168, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/shared_name_with_consts.ts_0_536
import {Component} from '@angular/core'; @Component({ selector: 'my-component', template: ` <div attr class="attr"></div> <div ngProjectAs="selector" class="selector"></div> <div style="width:0px" class="width"></div> <div [tabindex]="tabIndex" class="tabindex"></div> <div *ngIf="cond" class="ngIf"></div> <div aria-label="label" i18n-aria-label class="aria-label"></div> <div all ngProjectAs="all" style="all:all" [all]="all" *all="all" i18n-all class="all"></div> ` }) export class MyComponent { tabIndex = 0; }
{ "end_byte": 536, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/shared_name_with_consts.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding_on_structural.ts_0_194
import {Component} from '@angular/core'; @Component({ selector: 'my-component', template: ` <div *ngIf="true" [class.bar]="field"></div> ` }) export class MyComponent { field!: any; }
{ "end_byte": 194, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding_on_structural.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/static_bindings.ts_0_353
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: `<div class=" foo " style="width:100px" [attr.class]="'round'" [attr.style]="'height:100px'"></div>`, standalone: false }) export class MyComponent { } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 353, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/static_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_ordering.ts_0_459
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: `<div class="grape" [attr.class]="'banana'" [class.apple]="yesToApple" [class]="myClassExp" [class.orange]="yesToOrange"></div>`, standalone: false }) export class MyComponent { myClassExp = {a: true, b: true}; yesToApple = true; yesToOrange = true; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 459, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_ordering.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/empty_class_bindings.js_0_110
template: function MyComponent_Template(rf, $ctx$) { if (rf & 1) { $r3$.ɵɵelement(0, "div", 0); } }
{ "end_byte": 110, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/empty_class_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/shared_name_with_consts_template.pipeline.js_0_1566
consts: () => { __i18nMsg__('label', [], {}, {}) return [ ["attr", "", __AttributeMarker.Classes__, "attr"], ["ngProjectAs", "selector", __AttributeMarker.ProjectAs__, ["selector"], __AttributeMarker.Classes__, "selector"], [__AttributeMarker.Classes__, "width", __AttributeMarker.Styles__, "width", "0px"], [__AttributeMarker.Classes__, "tabindex", __AttributeMarker.Bindings__, "tabindex"], ["class", "ngIf", __AttributeMarker.Template__, "ngIf"], ["aria-label", i18n_0, __AttributeMarker.Classes__, "aria-label"], // NOTE: We tolerate a slight difference -- we emit `all` as a Template binding ["all", "", "ngProjectAs", "all", "style", "all:all", "class", "all", __AttributeMarker.ProjectAs__, ["all"], __AttributeMarker.Bindings__, "all", __AttributeMarker.Template__, "all"], [__AttributeMarker.Classes__, "ngIf"], ["all", "", "ngProjectAs", "all", __AttributeMarker.ProjectAs__, ["all"], __AttributeMarker.Classes__, "all", __AttributeMarker.Styles__, "all", "all", __AttributeMarker.Bindings__, "all"] ]; }, template: function MyComponent_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3); i0.ɵɵtemplate(4, MyComponent_div_4_Template, 1, 0, "div", 4); i0.ɵɵelement(5, "div", 5); i0.ɵɵtemplate(6, MyComponent_div_6_Template, 1, 1, "div", 6); } if (rf & 2) { i0.ɵɵadvance(3); i0.ɵɵproperty("tabindex", ctx.tabIndex); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx.cond); i0.ɵɵadvance(2); i0.ɵɵproperty("all", ctx.all); } }
{ "end_byte": 1566, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/shared_name_with_consts_template.pipeline.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding_on_structural.js_0_483
function MyComponent_div_0_Template(rf, ctx) { if (rf & 1) { $i0$.ɵɵelement(0, "div"); } if (rf & 2) { const $ctx_r0$ = $i0$.ɵɵnextContext(); $i0$.ɵɵclassProp("bar", $ctx_r0$.field); } } … consts: [[__AttributeMarker.Bindings__, "bar", __AttributeMarker.Template__, "ngIf"]], template: function MyComponent_Template(rf, ctx) { if (rf & 1) { $i0$.ɵɵtemplate(0, MyComponent_div_0_Template, 1, 2, "div", 0); } if (rf & 2) { $i0$.ɵɵproperty("ngIf", true); } }
{ "end_byte": 483, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding_on_structural.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding.ts_0_292
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: `<div [class]="myClassExp"></div>`, standalone: false }) export class MyComponent { myClassExp = {'foo': true} } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 292, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/multiple_directives.js_0_547
// ... hostVars: 2, hostBindings: function ClassDirective_HostBindings(rf, ctx) { if (rf & 2) { $r3$.ɵɵclassMap(ctx.myClassMap); } } // ... hostVars: 4, hostBindings: function WidthDirective_HostBindings(rf, ctx) { if (rf & 2) { $r3$.ɵɵstyleProp("width", ctx.myWidth); $r3$.ɵɵclassProp("foo", ctx.myFooClass); } } // ... hostVars: 4, hostBindings: function HeightDirective_HostBindings(rf, ctx) { if (rf & 2) { $r3$.ɵɵstyleProp("height", ctx.myHeight); $r3$.ɵɵclassProp("bar", ctx.myBarClass); } } // ...
{ "end_byte": 547, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/multiple_directives.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/multiple_dynamic.ts_0_568
import {Component, HostBinding, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: '', host: { '[style.height.pt]': 'myHeightProp', '[class.bar]': 'myBarClass' }, standalone: false }) export class MyComponent { myHeightProp = 20; myBarClass = true; @HostBinding('style') myStyle = {}; @HostBinding('style.width') myWidthProp = '500px'; @HostBinding('class.foo') myFooClass = true; @HostBinding('class') myClasses = {a: true, b: true}; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 568, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/multiple_dynamic.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/style_interpolation.ts_0_1021
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: ` <div style="p1:{{p1}};"></div> <div style="p1:{{p1}};p2:{{p2}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};p7:{{p7}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};p7:{{p7}};p8:{{p8}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};p7:{{p7}};p8:{{p8}};p9:{{p9}};"></div> `, standalone: false }) export class MyComponent { p1 = 100; p2 = 100; p3 = 100; p4 = 100; p5 = 100; p6 = 100; p7 = 100; p8 = 100; p9 = 100; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 1021, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/style_interpolation.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/important.ts_0_649
import {Component, HostBinding, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: ` <div [style.height!important]="myHeightExp" [class.bar!important]="myBarClassExp"></div> `, host: { '[style!important]': 'myStyleExp', '[class!important]': 'myClassExp' }, standalone: false }) export class MyComponent { myStyleExp = ''; myClassExp = ''; @HostBinding('class.foo!important') myFooClassExp = true; @HostBinding('style.width!important') myWidthExp = '100px'; myBarClassExp = true; myHeightExp = '200px'; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 649, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/important.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js_0_7644
/**************************************************************************************************** * PARTIAL FILE: static_and_dynamic.js ****************************************************************************************************/ import { Component, HostBinding, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.myStyle = { width: '100px' }; this.myClass = { bar: false }; this.myColorProp = 'red'; this.myFooClass = 'red'; } } 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", host: { properties: { "style": "this.myStyle", "class": "this.myClass", "style.color": "this.myColorProp", "class.foo": "this.myFooClass" }, styleAttribute: "width:200px; height:500px", classAttribute: "foo baz" }, 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: '', host: { 'style': 'width:200px; height:500px', 'class': 'foo baz' }, standalone: false }] }], propDecorators: { myStyle: [{ type: HostBinding, args: ['style'] }], myClass: [{ type: HostBinding, args: ['class'] }], myColorProp: [{ type: HostBinding, args: ['style.color'] }], myFooClass: [{ type: HostBinding, args: ['class.foo'] }] } }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: static_and_dynamic.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { myStyle: { width: string; }; myClass: { bar: boolean; }; myColorProp: string; myFooClass: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: multiple_dynamic.js ****************************************************************************************************/ import { Component, HostBinding, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.myHeightProp = 20; this.myBarClass = true; this.myStyle = {}; this.myWidthProp = '500px'; this.myFooClass = true; this.myClasses = { a: true, b: true }; } } 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", host: { properties: { "style.height.pt": "myHeightProp", "class.bar": "myBarClass", "style": "this.myStyle", "style.width": "this.myWidthProp", "class.foo": "this.myFooClass", "class": "this.myClasses" } }, 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: '', host: { '[style.height.pt]': 'myHeightProp', '[class.bar]': 'myBarClass' }, standalone: false }] }], propDecorators: { myStyle: [{ type: HostBinding, args: ['style'] }], myWidthProp: [{ type: HostBinding, args: ['style.width'] }], myFooClass: [{ type: HostBinding, args: ['class.foo'] }], myClasses: [{ type: HostBinding, args: ['class'] }] } }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: multiple_dynamic.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { myHeightProp: number; myBarClass: boolean; myStyle: {}; myWidthProp: string; myFooClass: boolean; myClasses: { a: boolean; b: boolean; }; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: important.js ****************************************************************************************************/ import { Component, HostBinding, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.myStyleExp = ''
{ "end_byte": 7644, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js_7645_13614
this.myClassExp = ''; this.myFooClassExp = true; this.myWidthExp = '100px'; this.myBarClassExp = true; this.myHeightExp = '200px'; } } 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", host: { properties: { "style!important": "myStyleExp", "class!important": "myClassExp", "class.foo!important": "this.myFooClassExp", "style.width!important": "this.myWidthExp" } }, ngImport: i0, template: ` <div [style.height!important]="myHeightExp" [class.bar!important]="myBarClassExp"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: ` <div [style.height!important]="myHeightExp" [class.bar!important]="myBarClassExp"></div> `, host: { '[style!important]': 'myStyleExp', '[class!important]': 'myClassExp' }, standalone: false }] }], propDecorators: { myFooClassExp: [{ type: HostBinding, args: ['class.foo!important'] }], myWidthExp: [{ type: HostBinding, args: ['style.width!important'] }] } }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: important.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { myStyleExp: string; myClassExp: string; myFooClassExp: boolean; myWidthExp: string; myBarClassExp: boolean; myHeightExp: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: class_interpolation.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.p1 = 100; this.p2 = 100; this.p3 = 100; this.p4 = 100; this.p5 = 100; this.p6 = 100; this.p7 = 100; this.p8 = 100; this.p9 = 100; } } 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 class="A{{p1}}B"></div> <div class="A{{p1}}B{{p2}}C"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G{{p7}}H"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G{{p7}}H{{p8}}I"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G{{p7}}H{{p8}}I{{p9}}J"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: ` <div class="A{{p1}}B"></div> <div class="A{{p1}}B{{p2}}C"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G{{p7}}H"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G{{p7}}H{{p8}}I"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G{{p7}}H{{p8}}I{{p9}}J"></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, decla
{ "end_byte": 13614, "start_byte": 7645, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js_13615_18882
ations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: class_interpolation.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { p1: number; p2: number; p3: number; p4: number; p5: number; p6: number; p7: number; p8: number; p9: number; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: style_interpolation.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.p1 = 100; this.p2 = 100; this.p3 = 100; this.p4 = 100; this.p5 = 100; this.p6 = 100; this.p7 = 100; this.p8 = 100; this.p9 = 100; } } 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 style="p1:{{p1}};"></div> <div style="p1:{{p1}};p2:{{p2}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};p7:{{p7}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};p7:{{p7}};p8:{{p8}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};p7:{{p7}};p8:{{p8}};p9:{{p9}};"></div> `, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: ` <div style="p1:{{p1}};"></div> <div style="p1:{{p1}};p2:{{p2}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};p7:{{p7}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};p7:{{p7}};p8:{{p8}};"></div> <div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};p7:{{p7}};p8:{{p8}};p9:{{p9}};"></div> `, standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent] }] }] }); /**************************************************************************************************** * PARTIAL FILE: style_interpolation.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { p1: number; p2: number; p3: number; p4: number; p5: number; p6: number; p7: number; p8: number; p9: number; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, neve
{ "end_byte": 18882, "start_byte": 13615, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js_18887_26409
export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: multiple_directives.js ****************************************************************************************************/ import { Component, Directive, HostBinding, NgModule } from '@angular/core'; import * as i0 from "@angular/core"; export class ClassDirective { constructor() { this.myClassMap = { red: true }; } } ClassDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ClassDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); ClassDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: ClassDirective, isStandalone: false, selector: "[myClassDir]", host: { properties: { "class": "this.myClassMap" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: ClassDirective, decorators: [{ type: Directive, args: [{ selector: '[myClassDir]', standalone: false }] }], propDecorators: { myClassMap: [{ type: HostBinding, args: ['class'] }] } }); export class WidthDirective { constructor() { this.myWidth = 200; this.myFooClass = true; } } WidthDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: WidthDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); WidthDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: WidthDirective, isStandalone: false, selector: "[myWidthDir]", host: { properties: { "style.width": "this.myWidth", "class.foo": "this.myFooClass" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: WidthDirective, decorators: [{ type: Directive, args: [{ selector: '[myWidthDir]', standalone: false }] }], propDecorators: { myWidth: [{ type: HostBinding, args: ['style.width'] }], myFooClass: [{ type: HostBinding, args: ['class.foo'] }] } }); export class HeightDirective { constructor() { this.myHeight = 200; this.myBarClass = true; } } HeightDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HeightDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); HeightDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: HeightDirective, isStandalone: false, selector: "[myHeightDir]", host: { properties: { "style.height": "this.myHeight", "class.bar": "this.myBarClass" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HeightDirective, decorators: [{ type: Directive, args: [{ selector: '[myHeightDir]', standalone: false }] }], propDecorators: { myHeight: [{ type: HostBinding, args: ['style.height'] }], myBarClass: [{ type: HostBinding, args: ['class.bar'] }] } }); 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 myWidthDir myHeightDir myClassDir></div>', isInline: true, dependencies: [{ kind: "directive", type: WidthDirective, selector: "[myWidthDir]" }, { kind: "directive", type: HeightDirective, selector: "[myHeightDir]" }, { kind: "directive", type: ClassDirective, selector: "[myClassDir]" }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ selector: 'my-component', template: '<div myWidthDir myHeightDir myClassDir></div>', standalone: false }] }] }); export class MyModule { } MyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); MyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, declarations: [MyComponent, WidthDirective, HeightDirective, ClassDirective] }); MyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyModule, decorators: [{ type: NgModule, args: [{ declarations: [MyComponent, WidthDirective, HeightDirective, ClassDirective] }] }] }); /**************************************************************************************************** * PARTIAL FILE: multiple_directives.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class ClassDirective { myClassMap: { red: boolean; }; static ɵfac: i0.ɵɵFactoryDeclaration<ClassDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ClassDirective, "[myClassDir]", never, {}, {}, never, never, false, never>; } export declare class WidthDirective { myWidth: number; myFooClass: boolean; static ɵfac: i0.ɵɵFactoryDeclaration<WidthDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<WidthDirective, "[myWidthDir]", never, {}, {}, never, never, false, never>; } export declare class HeightDirective { myHeight: number; myBarClass: boolean; static ɵfac: i0.ɵɵFactoryDeclaration<HeightDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HeightDirective, "[myHeightDir]", never, {}, {}, never, never, false, never>; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never, false, never>; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent, typeof WidthDirective, typeof HeightDirective, typeof ClassDirective], never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>; } /**************************************************************************************************** * PARTIAL FILE: css_custom_properties.js ****************************************************************************************************/ import { Directive } from '
{ "end_byte": 26409, "start_byte": 18887, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js_26411_28317
ngular/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: { "style.--camelCase": "value", "style.--kebab-case": "value" }, styleAttribute: "--camelCase: foo; --kebab-case: foo" }, 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: { '[style.--camelCase]': 'value', '[style.--kebab-case]': 'value', 'style': '--camelCase: foo; --kebab-case: foo', }, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: css_custom_properties.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyDirective { value: any; static ɵfac: i0.ɵɵFactoryDeclaration<MyDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MyDirective, "my-dir", never, {}, {}, never, never, false, never>; }
{ "end_byte": 28317, "start_byte": 26411, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/css_custom_properties.js_0_352
// NOTE: It *does* mangle the camel case property in the consts array. This was pre-existing TDB behavior, but should be fixed. hostAttrs: [2, "--camel-case", "foo", "--kebab-case", "foo"], … hostBindings: function MyDirective_HostBindings(rf, ctx) { if (rf & 2) { i0.ɵɵstyleProp("--camelCase", ctx.value)("--kebab-case", ctx.value); } }
{ "end_byte": 352, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/css_custom_properties.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/class_interpolation.ts_0_895
import {Component, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: ` <div class="A{{p1}}B"></div> <div class="A{{p1}}B{{p2}}C"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G{{p7}}H"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G{{p7}}H{{p8}}I"></div> <div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G{{p7}}H{{p8}}I{{p9}}J"></div> `, standalone: false }) export class MyComponent { p1 = 100; p2 = 100; p3 = 100; p4 = 100; p5 = 100; p6 = 100; p7 = 100; p8 = 100; p9 = 100; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 895, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/class_interpolation.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/multiple_directives.ts_0_896
import {Component, Directive, HostBinding, NgModule} from '@angular/core'; @Directive({ selector: '[myClassDir]', standalone: false }) export class ClassDirective { @HostBinding('class') myClassMap = {red: true}; } @Directive({ selector: '[myWidthDir]', standalone: false }) export class WidthDirective { @HostBinding('style.width') myWidth = 200; @HostBinding('class.foo') myFooClass = true; } @Directive({ selector: '[myHeightDir]', standalone: false }) export class HeightDirective { @HostBinding('style.height') myHeight = 200; @HostBinding('class.bar') myBarClass = true; } @Component({ selector: 'my-component', template: '<div myWidthDir myHeightDir myClassDir></div>', standalone: false }) export class MyComponent { } @NgModule({declarations: [MyComponent, WidthDirective, HeightDirective, ClassDirective]}) export class MyModule { }
{ "end_byte": 896, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/multiple_directives.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/static_and_dynamic.ts_0_522
import {Component, HostBinding, NgModule} from '@angular/core'; @Component({ selector: 'my-component', template: '', host: { 'style': 'width:200px; height:500px', 'class': 'foo baz' }, standalone: false }) export class MyComponent { @HostBinding('style') myStyle = {width: '100px'}; @HostBinding('class') myClass = {bar: false}; @HostBinding('style.color') myColorProp = 'red'; @HostBinding('class.foo') myFooClass = 'red'; } @NgModule({declarations: [MyComponent]}) export class MyModule { }
{ "end_byte": 522, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/static_and_dynamic.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/css_custom_properties.ts_0_303
import {Directive} from '@angular/core'; @Directive({ selector: 'my-dir', host: { '[style.--camelCase]': 'value', '[style.--kebab-case]': 'value', 'style': '--camelCase: foo; --kebab-case: foo', }, standalone: false }) export class MyDirective { value: any; }
{ "end_byte": 303, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/css_custom_properties.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/invalid/individual_class_binding.ts_0_190
import {Component} from '@angular/core'; @Component({ template: '<div class.something="{{isEnabled}}"></div>', standalone: false }) export class MyComponent { isEnabled = true; }
{ "end_byte": 190, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/invalid/individual_class_binding.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/invalid/GOLDEN_PARTIAL.js_0_1723
/**************************************************************************************************** * PARTIAL FILE: individual_class_binding.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.isEnabled = true; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: '<div class.something="{{isEnabled}}"></div>', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: '<div class.something="{{isEnabled}}"></div>', standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: individual_class_binding.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { isEnabled: boolean; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; }
{ "end_byte": 1723, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/invalid/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/interpolations_equal_arity.ts_0_237
import {Component} from '@angular/core'; @Component({ template: `<div style.color="a{{one}}b" style.border="a{{one}}b" style.transition="a{{one}}b"></div>`, standalone: false }) export class MyComponent { one = ''; }
{ "end_byte": 237, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/interpolations_equal_arity.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/host_bindings.js_1_410
// ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ // ... hostBindings: function MyComponent_HostBindings(rf, $ctx$) { // ... if (rf & 2) { $r3$.ɵɵstyleProp("color", $ctx$.color)("transition", $ctx$.transition)("border", $ctx$.border); $r3$.ɵɵclassProp("apple", $ctx$.yesToApple)("tomato", $ctx$.yesToTomato)("orange", $ctx$.yesToOrange); } }, // ... });
{ "end_byte": 410, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/host_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/class_bindings.js_1_308
// ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ // ... template: function MyComponent_Template(rf, $ctx$) { // ... if (rf & 2) { $r3$.ɵɵclassProp("apple", $ctx$.yesToApple)("orange", $ctx$.yesToOrange)("tomato", $ctx$.yesToTomato); } }, encapsulation: 2 });
{ "end_byte": 308, "start_byte": 1, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/class_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/mixed_bindings.ts_0_473
import {Component} from '@angular/core'; @Component({ template: `<div [class.apple]="yesToApple" [style.color]="color" [class.orange]="yesToOrange" [style.border]="border" [class.tomato]="yesToTomato" [style.transition]="transition"></div>`, standalone: false }) export class MyComponent { color = 'red'; border = '1px solid purple'; transition = 'all 1337ms ease'; yesToApple = true; yesToOrange = true; yesToTomato = false; }
{ "end_byte": 473, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/mixed_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/style_bindings.js_0_299
// ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ // ... template: function MyComponent_Template(rf, $ctx$) { // ... if (rf & 2) { $r3$.ɵɵstyleProp("color", $ctx$.color)("border", $ctx$.border)("transition", $ctx$.transition); } }, encapsulation: 2 });
{ "end_byte": 299, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/style_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/break_different_instructions.js_0_537
// ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ // ... template: function MyComponent_Template(rf, $ctx$) { // ... if (rf & 2) { $r3$.ɵɵstylePropInterpolate1("color", "a", ctx.one, "b")("border", "a", ctx.one, "b"); $r3$.ɵɵstyleProp("transition", ctx.transition)("width", ctx.width); $r3$.ɵɵstylePropInterpolate1("height", "a", ctx.one, "b")("top", "a", ctx.one, "b"); $r3$.ɵɵclassProp("apple", ctx.yesToApple)("orange", ctx.yesToOrange); } }, encapsulation: 2 });
{ "end_byte": 537, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/break_different_instructions.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/break_different_interpolation_instructions.js_0_564
// ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ // ... template: function MyComponent_Template(rf, $ctx$) { // ... if (rf & 2) { $r3$.ɵɵstylePropInterpolate1("color", "a", ctx.one, "b")("border", "a", ctx.one, "b"); $r3$.ɵɵstylePropInterpolate2("transition", "a", ctx.one, "b", ctx.two, "c"); $r3$.ɵɵstylePropInterpolate3("width", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d"); $r3$.ɵɵstylePropInterpolate1("height", "a", ctx.one, "b")("top", "a", ctx.one, "b"); } }, encapsulation: 2 });
{ "end_byte": 564, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/break_different_interpolation_instructions.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/interpolations_different_arity.js_0_570
// ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ // ... template: function MyComponent_Template(rf, $ctx$) { // ... if (rf & 2) { $r3$.ɵɵstylePropInterpolate1("color", "a", ctx.one, "b")("border", "a", ctx.one, "b"); $r3$.ɵɵstylePropInterpolate2("transition", "a", ctx.one, "b", ctx.two, "c")("width", "a", ctx.one, "b", ctx.two, "c"); $r3$.ɵɵstylePropInterpolate3("height", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d")("top", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d"); } }, encapsulation: 2 });
{ "end_byte": 570, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/interpolations_different_arity.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/GOLDEN_PARTIAL.js_0_8485
/**************************************************************************************************** * PARTIAL FILE: class_bindings.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.yesToApple = true; this.yesToOrange = true; this.yesToTomato = false; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: `<div [class.apple]="yesToApple" [class.orange]="yesToOrange" [class.tomato]="yesToTomato"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: `<div [class.apple]="yesToApple" [class.orange]="yesToOrange" [class.tomato]="yesToTomato"></div>`, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: class_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { yesToApple: boolean; yesToOrange: boolean; yesToTomato: boolean; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: style_bindings.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.color = 'red'; this.border = '1px solid purple'; this.transition = 'all 1337ms ease'; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: `<div [style.color]="color" [style.border]="border" [style.transition]="transition"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: `<div [style.color]="color" [style.border]="border" [style.transition]="transition"></div>`, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: style_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { color: string; border: string; transition: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: mixed_bindings.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.color = 'red'; this.border = '1px solid purple'; this.transition = 'all 1337ms ease'; this.yesToApple = true; this.yesToOrange = true; this.yesToTomato = false; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: `<div [class.apple]="yesToApple" [style.color]="color" [class.orange]="yesToOrange" [style.border]="border" [class.tomato]="yesToTomato" [style.transition]="transition"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: `<div [class.apple]="yesToApple" [style.color]="color" [class.orange]="yesToOrange" [style.border]="border" [class.tomato]="yesToTomato" [style.transition]="transition"></div>`, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: mixed_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { color: string; border: string; transition: string; yesToApple: boolean; yesToOrange: boolean; yesToTomato: boolean; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: interpolations_equal_arity.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.one = ''; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: `<div style.color="a{{one}}b" style.border="a{{one}}b" style.transition="a{{one}}b"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: `<div style.color="a{{one}}b" style.border="a{{one}}b" style.transition="a{{one}}b"></div>`, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: interpolations_equal_arity.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { one: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: interpolations_different_arity.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.one = ''; this.two = ''; this.three = ''; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0"
{ "end_byte": 8485, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/GOLDEN_PARTIAL.js_8486_16318
version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: `<div style.color="a{{one}}b" style.border="a{{one}}b" style.transition="a{{one}}b{{two}}c" style.width="a{{one}}b{{two}}c" style.height="a{{one}}b{{two}}c{{three}}d" style.top="a{{one}}b{{two}}c{{three}}d"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: `<div style.color="a{{one}}b" style.border="a{{one}}b" style.transition="a{{one}}b{{two}}c" style.width="a{{one}}b{{two}}c" style.height="a{{one}}b{{two}}c{{three}}d" style.top="a{{one}}b{{two}}c{{three}}d"></div>`, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: interpolations_different_arity.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { one: string; two: string; three: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: break_different_instructions.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.one = ''; this.transition = 'all 1337ms ease'; this.width = '42px'; this.yesToApple = true; this.yesToOrange = true; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: `<div style.color="a{{one}}b" style.border="a{{one}}b" [class.apple]="yesToApple" [style.transition]="transition" [class.orange]="yesToOrange" [style.width]="width" style.height="a{{one}}b" style.top="a{{one}}b"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: `<div style.color="a{{one}}b" style.border="a{{one}}b" [class.apple]="yesToApple" [style.transition]="transition" [class.orange]="yesToOrange" [style.width]="width" style.height="a{{one}}b" style.top="a{{one}}b"></div>`, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: break_different_instructions.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { one: string; transition: string; width: string; yesToApple: boolean; yesToOrange: boolean; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: break_different_interpolation_instructions.js ****************************************************************************************************/ import { Component } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.one = ''; this.two = ''; this.three = ''; this.transition = 'all 1337ms ease'; this.width = '42px'; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: `<div style.color="a{{one}}b" style.border="a{{one}}b" style.transition="a{{one}}b{{two}}c" style.width="a{{one}}b{{two}}c{{three}}d" style.height="a{{one}}b" style.top="a{{one}}b"></div>`, isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, decorators: [{ type: Component, args: [{ template: `<div style.color="a{{one}}b" style.border="a{{one}}b" style.transition="a{{one}}b{{two}}c" style.width="a{{one}}b{{two}}c{{three}}d" style.height="a{{one}}b" style.top="a{{one}}b"></div>`, standalone: false }] }] }); /**************************************************************************************************** * PARTIAL FILE: break_different_interpolation_instructions.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { one: string; two: string; three: string; transition: string; width: string; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; } /**************************************************************************************************** * PARTIAL FILE: host_bindings.js ****************************************************************************************************/ import { Component, HostBinding } from '@angular/core'; import * as i0 from "@angular/core"; export class MyComponent { constructor() { this.color = 'red'; this.transition = 'all 1337ms ease'; this.yesToApple = true; this.yesToTomato = false; this.border = '1px solid purple'; this.yesToOrange = true; } } MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyComponent, isStandalone: false, selector: "ng-component", host: { properties: { "class.apple": "yesToApple", "style.color": "color", "class.tomato": "yesToTomato", "style.transition": "transition", "style.border": "this.border", "class.orange": "this.yesToOrange" } }, ngImport: i0, template: '', isInline: true }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyComponent, deco
{ "end_byte": 16318, "start_byte": 8486, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/GOLDEN_PARTIAL.js_16319_17745
ators: [{ type: Component, args: [{ template: '', host: { '[class.apple]': 'yesToApple', '[style.color]': 'color', '[class.tomato]': 'yesToTomato', '[style.transition]': 'transition' }, standalone: false }] }], propDecorators: { border: [{ type: HostBinding, args: ['style.border'] }], yesToOrange: [{ type: HostBinding, args: ['class.orange'] }] } }); /**************************************************************************************************** * PARTIAL FILE: host_bindings.d.ts ****************************************************************************************************/ import * as i0 from "@angular/core"; export declare class MyComponent { color: string; transition: string; yesToApple: boolean; yesToTomato: boolean; border: string; yesToOrange: boolean; static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "ng-component", never, {}, {}, never, never, false, never>; }
{ "end_byte": 17745, "start_byte": 16319, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/GOLDEN_PARTIAL.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/host_bindings.ts_0_524
import {Component, HostBinding} from '@angular/core'; @Component({ template: '', host: { '[class.apple]': 'yesToApple', '[style.color]': 'color', '[class.tomato]': 'yesToTomato', '[style.transition]': 'transition' }, standalone: false }) export class MyComponent { color = 'red'; transition = 'all 1337ms ease'; yesToApple = true; yesToTomato = false; @HostBinding('style.border') border = '1px solid purple'; @HostBinding('class.orange') yesToOrange = true; }
{ "end_byte": 524, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/host_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/class_bindings.ts_0_298
import {Component} from '@angular/core'; @Component({ template: `<div [class.apple]="yesToApple" [class.orange]="yesToOrange" [class.tomato]="yesToTomato"></div>`, standalone: false }) export class MyComponent { yesToApple = true; yesToOrange = true; yesToTomato = false; }
{ "end_byte": 298, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/class_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/style_bindings.ts_0_310
import {Component} from '@angular/core'; @Component({ template: `<div [style.color]="color" [style.border]="border" [style.transition]="transition"></div>`, standalone: false }) export class MyComponent { color = 'red'; border = '1px solid purple'; transition = 'all 1337ms ease'; }
{ "end_byte": 310, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/style_bindings.ts" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/mixed_bindings.js_0_410
// ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ // ... template: function MyComponent_Template(rf, $ctx$) { // ... if (rf & 2) { $r3$.ɵɵstyleProp("color", $ctx$.color)("border", $ctx$.border)("transition", $ctx$.transition); $r3$.ɵɵclassProp("apple", $ctx$.yesToApple)("orange", $ctx$.yesToOrange)("tomato", $ctx$.yesToTomato); } }, encapsulation: 2 });
{ "end_byte": 410, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/mixed_bindings.js" }
angular/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/interpolations_equal_arity.js_0_323
// ... MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ // ... template: function MyComponent_Template(rf, $ctx$) { // ... if (rf & 2) { $r3$.ɵɵstylePropInterpolate1("color", "a", ctx.one, "b")("border", "a", ctx.one, "b")("transition", "a", ctx.one, "b"); } }, encapsulation: 2 });
{ "end_byte": 323, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/interpolations_equal_arity.js" }