@@ -1782,21 +1782,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
17821782 } ] } } ) ;
17831783export class MyApp {
17841784 constructor ( ) {
1785- this . expr = true ;
1785+ this . expr = 0 ;
17861786 }
17871787}
17881788MyApp . ɵfac = i0 . ɵɵngDeclareFactory ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : MyApp , deps : [ ] , target : i0 . ɵɵFactoryTarget . Component } ) ;
17891789MyApp . ɵcmp = i0 . ɵɵngDeclareComponent ( { minVersion : "17.0.0" , version : "0.0.0-PLACEHOLDER" , type : MyApp , isStandalone : true , selector : "ng-component" , ngImport : i0 , template : `
1790- @if (expr) {
1790+ @if (expr === 0 ) {
17911791 <div foo="1" bar="2" [binding]="3">{{expr}}</div>
1792+ } @else if (expr === 1) {
1793+ <div foo="4" bar="5" [binding]="6">{{expr}}</div>
1794+ } @else {
1795+ <div foo="7" bar="8" [binding]="9">{{expr}}</div>
17921796 }
17931797 ` , isInline : true , dependencies : [ { kind : "directive" , type : Binding , selector : "[binding]" , inputs : [ "binding" ] } ] } ) ;
17941798i0 . ɵɵngDeclareClassMetadata ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : MyApp , decorators : [ {
17951799 type : Component ,
17961800 args : [ {
17971801 template : `
1798- @if (expr) {
1802+ @if (expr === 0 ) {
17991803 <div foo="1" bar="2" [binding]="3">{{expr}}</div>
1804+ } @else if (expr === 1) {
1805+ <div foo="4" bar="5" [binding]="6">{{expr}}</div>
1806+ } @else {
1807+ <div foo="7" bar="8" [binding]="9">{{expr}}</div>
18001808 }
18011809 ` ,
18021810 standalone : true ,
@@ -1814,46 +1822,74 @@ export declare class Binding {
18141822 static ɵdir : i0 . ɵɵDirectiveDeclaration < Binding , "[binding]" , never , { "binding" : { "alias" : "binding" ; "required" : false ; } ; } , { } , never , never , true , never > ;
18151823}
18161824export declare class MyApp {
1817- expr : boolean ;
1825+ expr : number ;
18181826 static ɵfac : i0 . ɵɵFactoryDeclaration < MyApp , never > ;
18191827 static ɵcmp : i0 . ɵɵComponentDeclaration < MyApp , "ng-component" , never , { } , { } , never , never , true , never > ;
18201828}
18211829
18221830/****************************************************************************************************
18231831 * PARTIAL FILE: if_template_root_node.js
18241832 ****************************************************************************************************/
1825- import { Component } from '@angular/core' ;
1833+ import { Component, Directive , Input } from '@angular/core' ;
18261834import * as i0 from "@angular/core" ;
1835+ export class Binding {
1836+ constructor ( ) {
1837+ this . binding = 0 ;
1838+ }
1839+ }
1840+ Binding . ɵfac = i0 . ɵɵngDeclareFactory ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : Binding , deps : [ ] , target : i0 . ɵɵFactoryTarget . Directive } ) ;
1841+ Binding . ɵdir = i0 . ɵɵngDeclareDirective ( { minVersion : "14.0.0" , version : "0.0.0-PLACEHOLDER" , type : Binding , isStandalone : true , selector : "[binding]" , inputs : { binding : "binding" } , ngImport : i0 } ) ;
1842+ i0 . ɵɵngDeclareClassMetadata ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : Binding , decorators : [ {
1843+ type : Directive ,
1844+ args : [ { standalone : true , selector : '[binding]' } ]
1845+ } ] , propDecorators : { binding : [ {
1846+ type : Input
1847+ } ] } } ) ;
18271848export class MyApp {
18281849 constructor ( ) {
1829- this . expr = true ;
1850+ this . expr = 0 ;
18301851 }
18311852}
18321853MyApp . ɵfac = i0 . ɵɵngDeclareFactory ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : MyApp , deps : [ ] , target : i0 . ɵɵFactoryTarget . Component } ) ;
1833- MyApp . ɵcmp = i0 . ɵɵngDeclareComponent ( { minVersion : "17.0.0" , version : "0.0.0-PLACEHOLDER" , type : MyApp , selector : "ng-component" , ngImport : i0 , template : `
1834- @if (expr) {
1835- <ng-template foo="1" bar="2">{{expr}}</ng-template>
1854+ MyApp . ɵcmp = i0 . ɵɵngDeclareComponent ( { minVersion : "17.0.0" , version : "0.0.0-PLACEHOLDER" , type : MyApp , isStandalone : true , selector : "ng-component" , ngImport : i0 , template : `
1855+ @if (expr === 0) {
1856+ <ng-template foo="1" bar="2" [binding]="3">{{expr}}</ng-template>
1857+ } @else if (expr === 1) {
1858+ <ng-template foo="4" bar="5" [binding]="6">{{expr}}</ng-template>
1859+ } @else {
1860+ <ng-template foo="7" bar="8" [binding]="9">{{expr}}</ng-template>
18361861 }
1837- ` , isInline : true } ) ;
1862+ ` , isInline : true , dependencies : [ { kind : "directive" , type : Binding , selector : "[binding]" , inputs : [ "binding" ] } ] } ) ;
18381863i0 . ɵɵngDeclareClassMetadata ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : MyApp , decorators : [ {
18391864 type : Component ,
18401865 args : [ {
18411866 template : `
1842- @if (expr) {
1843- <ng-template foo="1" bar="2">{{expr}}</ng-template>
1867+ @if (expr === 0) {
1868+ <ng-template foo="1" bar="2" [binding]="3">{{expr}}</ng-template>
1869+ } @else if (expr === 1) {
1870+ <ng-template foo="4" bar="5" [binding]="6">{{expr}}</ng-template>
1871+ } @else {
1872+ <ng-template foo="7" bar="8" [binding]="9">{{expr}}</ng-template>
18441873 }
18451874 ` ,
1875+ standalone : true ,
1876+ imports : [ Binding ] ,
18461877 } ]
18471878 } ] } ) ;
18481879
18491880/****************************************************************************************************
18501881 * PARTIAL FILE: if_template_root_node.d.ts
18511882 ****************************************************************************************************/
18521883import * as i0 from "@angular/core" ;
1884+ export declare class Binding {
1885+ binding : number ;
1886+ static ɵfac : i0 . ɵɵFactoryDeclaration < Binding , never > ;
1887+ static ɵdir : i0 . ɵɵDirectiveDeclaration < Binding , "[binding]" , never , { "binding" : { "alias" : "binding" ; "required" : false ; } ; } , { } , never , never , true , never > ;
1888+ }
18531889export declare class MyApp {
1854- expr : boolean ;
1890+ expr : number ;
18551891 static ɵfac : i0 . ɵɵFactoryDeclaration < MyApp , never > ;
1856- static ɵcmp : i0 . ɵɵComponentDeclaration < MyApp , "ng-component" , never , { } , { } , never , never , false , never > ;
1892+ static ɵcmp : i0 . ɵɵComponentDeclaration < MyApp , "ng-component" , never , { } , { } , never , never , true , never > ;
18571893}
18581894
18591895/****************************************************************************************************
@@ -1920,42 +1956,62 @@ export declare class MyApp {
19201956/****************************************************************************************************
19211957 * PARTIAL FILE: for_template_root_node.js
19221958 ****************************************************************************************************/
1923- import { Component } from '@angular/core' ;
1959+ import { Component, Directive , Input } from '@angular/core' ;
19241960import * as i0 from "@angular/core" ;
1961+ export class Binding {
1962+ constructor ( ) {
1963+ this . binding = 0 ;
1964+ }
1965+ }
1966+ Binding . ɵfac = i0 . ɵɵngDeclareFactory ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : Binding , deps : [ ] , target : i0 . ɵɵFactoryTarget . Directive } ) ;
1967+ Binding . ɵdir = i0 . ɵɵngDeclareDirective ( { minVersion : "14.0.0" , version : "0.0.0-PLACEHOLDER" , type : Binding , isStandalone : true , selector : "[binding]" , inputs : { binding : "binding" } , ngImport : i0 } ) ;
1968+ i0 . ɵɵngDeclareClassMetadata ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : Binding , decorators : [ {
1969+ type : Directive ,
1970+ args : [ { standalone : true , selector : '[binding]' } ]
1971+ } ] , propDecorators : { binding : [ {
1972+ type : Input
1973+ } ] } } ) ;
19251974export class MyApp {
19261975 constructor ( ) {
19271976 this . items = [ 1 , 2 , 3 ] ;
19281977 }
19291978}
19301979MyApp . ɵfac = i0 . ɵɵngDeclareFactory ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : MyApp , deps : [ ] , target : i0 . ɵɵFactoryTarget . Component } ) ;
1931- MyApp . ɵcmp = i0 . ɵɵngDeclareComponent ( { minVersion : "17.0.0" , version : "0.0.0-PLACEHOLDER" , type : MyApp , selector : "ng-component" , ngImport : i0 , template : `
1980+ MyApp . ɵcmp = i0 . ɵɵngDeclareComponent ( { minVersion : "17.0.0" , version : "0.0.0-PLACEHOLDER" , type : MyApp , isStandalone : true , selector : "ng-component" , ngImport : i0 , template : `
19321981 @for (item of items; track item) {
1933- <ng-template foo="1" bar="2">{{item}}</ng-template>
1982+ <ng-template foo="1" bar="2" [binding]="3" >{{item}}</ng-template>
19341983 } @empty {
1935- <ng-template empty-foo="1" empty-bar="2">Empty!</ng-template>
1984+ <ng-template empty-foo="1" empty-bar="2" [binding]="3" >Empty!</ng-template>
19361985 }
1937- ` , isInline : true } ) ;
1986+ ` , isInline : true , dependencies : [ { kind : "directive" , type : Binding , selector : "[binding]" , inputs : [ "binding" ] } ] } ) ;
19381987i0 . ɵɵngDeclareClassMetadata ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : MyApp , decorators : [ {
19391988 type : Component ,
19401989 args : [ {
19411990 template : `
19421991 @for (item of items; track item) {
1943- <ng-template foo="1" bar="2">{{item}}</ng-template>
1992+ <ng-template foo="1" bar="2" [binding]="3" >{{item}}</ng-template>
19441993 } @empty {
1945- <ng-template empty-foo="1" empty-bar="2">Empty!</ng-template>
1994+ <ng-template empty-foo="1" empty-bar="2" [binding]="3" >Empty!</ng-template>
19461995 }
19471996 ` ,
1997+ standalone : true ,
1998+ imports : [ Binding ] ,
19481999 } ]
19492000 } ] } ) ;
19502001
19512002/****************************************************************************************************
19522003 * PARTIAL FILE: for_template_root_node.d.ts
19532004 ****************************************************************************************************/
19542005import * as i0 from "@angular/core" ;
2006+ export declare class Binding {
2007+ binding : number ;
2008+ static ɵfac : i0 . ɵɵFactoryDeclaration < Binding , never > ;
2009+ static ɵdir : i0 . ɵɵDirectiveDeclaration < Binding , "[binding]" , never , { "binding" : { "alias" : "binding" ; "required" : false ; } ; } , { } , never , never , true , never > ;
2010+ }
19552011export declare class MyApp {
19562012 items : number [ ] ;
19572013 static ɵfac : i0 . ɵɵFactoryDeclaration < MyApp , never > ;
1958- static ɵcmp : i0 . ɵɵComponentDeclaration < MyApp , "ng-component" , never , { } , { } , never , never , false , never > ;
2014+ static ɵcmp : i0 . ɵɵComponentDeclaration < MyApp , "ng-component" , never , { } , { } , never , never , true , never > ;
19592015}
19602016
19612017/****************************************************************************************************
0 commit comments