MCPcopy Create free account
hub / github.com/angular/angular / itemTemplate

Function itemTemplate

packages/core/test/render3/foreign_component_spec.ts:307–319  ·  view source on GitHub ↗
(rf: number, ctx: any)

Source from the content-addressed store, hash-verified

305 );
306
307 const itemTemplate = (rf: number, ctx: any) => {
308 if (rf & 1) {
309 ɵɵelementStart(0, 'span');
310 ɵɵtext(1);
311 ɵɵelementEnd();
312 }
313 if (rf & 2) {
314 const item = ctx[0];
315 const index = ctx[1];
316 ɵɵadvance(1);
317 ɵɵtextInterpolate2('#', index, ': ', item);
318 }
319 };
320
321 const fixture = new ViewFixture({
322 decls: 2,

Callers

nothing calls this directly

Calls 5

ɵɵelementStartFunction · 0.90
ɵɵtextFunction · 0.90
ɵɵelementEndFunction · 0.90
ɵɵadvanceFunction · 0.90
ɵɵtextInterpolate2Function · 0.90

Tested by

no test coverage detected