This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const _ctor1: (init: Partial<Pick<i1.ChildComponent, "prop">>) => i1.ChildComponent = (null!); | |
function _tcb1(ctx: i0.AppComponent) { | |
if (true) { | |
var _t1 = _ctor1({}); | |
_t1.s; // Property 's' does not exist on type 'ChildComponent'. | |
var _t2 = document.createElement("app-child"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _View_AppComponent_1_0():void { | |
var _any:any = (null as any); | |
const currVal_0:any = i0.ɵinlineInterpolate(1,'',_decl0_12.flag,''); | |
currVal_0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _tcb1(ctx: i0.AppComponent) { | |
if (true) { | |
var _t1 = document.createElement("input"); | |
_t1.checked = "" + ctx.checked; // error TS2322: Type 'string' is not assignable to type 'boolean'. | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const _ctor1: <T = any>(init: Partial<Pick<i1.NgForOf<T>, "ngForOf" | "ngForTrackBy" | "ngForTemplate">>) => i1.NgForOf<T> = (null!); | |
function _tcb1(ctx: i0.AppComponent) { | |
if (true) { | |
var _t1 = _ctor1({ ngForOf: "3" }); | |
var _t2: any = (null!); | |
if (i1.NgForOf.ngTemplateContextGuard(_t1, _t2)) { | |
var _t3 = _t2.$implicit; | |
var _t4 = _t2.indix; // error TS2551: Property 'indix' does not exist on type 'NgForOfContext<string>'. Did you mean 'index'? | |
var _t5 = document.createElement("div"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div *ngFor="let item of '3'; let i = 'indix'"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as i0 from './src/app/app.component'; | |
import * as i1 from '@angular/common'; | |
const _ctor1: <T = any>(init: Partial<Pick<i1.NgForOf<T>, "ngForOf" | "ngForTrackBy" | "ngForTemplate">>) => i1.NgForOf<T> = (null!); | |
function _tcb1(ctx: i0.AppComponent) { | |
if (true) { | |
var _t1 = _ctor1({ ngForOf: [{ "name": "3" }] }); | |
var _t2: any = (null!); | |
if (i1.NgForOf.ngTemplateContextGuard(_t1, _t2)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div *ngFor="let item of [{ name: '3'}]"> | |
{{ item.nane }} | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class NgForOfContext<T> { | |
constructor( | |
public $implicit: T, public ngForOf: NgIterable<T>, public index: number, | |
public count: number) {} | |
get first(): boolean { return this.index === 0; } | |
get last(): boolean { return this.index === this.count - 1; } | |
get even(): boolean { return this.index % 2 === 0; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static ngTemplateContextGuard<T>(dir: NgForOf<T>, ctx: any): ctx is NgForOfContext<T> { | |
return true; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const _ctor1: (init: Partial<Pick<i1.ChildComponent, "prop">>) => i1.ChildComponent = (null!); | |
function _tcb1(ctx: i0.AppComponent) { | |
if (true) { | |
var _t1 = document.createElement("app-child"); | |
var _t2 = _ctor1({ prop: "text" }); // error TS2322: Type 'string' is not assignable to type 'number'. | |
} | |
} |