Skip to content

Instantly share code, notes, and snippets.

View alexzuza's full-sized avatar
🎯
Focusing

Alexey Zuev alexzuza

🎯
Focusing
View GitHub Profile
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");
}
}
function _View_AppComponent_1_0():void {
var _any:any = (null as any);
const currVal_0:any = i0.ɵinlineInterpolate(1,'',_decl0_12.flag,'');
currVal_0;
}
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'.
}
}
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");
<div *ngFor="let item of '3'; let i = 'indix'"></div>
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)) {
<div *ngFor="let item of [{ name: '3'}]">
{{ item.nane }}
</div>
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; }
static ngTemplateContextGuard<T>(dir: NgForOf<T>, ctx: any): ctx is NgForOfContext<T> {
return true;
}
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'.
}
}