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

Function itemTemplate

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

Source from the content-addressed store, hash-verified

342 );
343
344 const itemTemplate = (rf: number, ctx: any) => {
345 if (rf & 1) {
346 ɵɵelementStart(0, 'span');
347 ɵɵtext(1);
348 ɵɵelementEnd();
349 }
350 if (rf & 2) {
351 const item = ctx[0];
352 const index = ctx[1];
353 ɵɵadvance(1);
354 ɵɵtextInterpolate2('#', index, ': ', item);
355 }
356 };
357
358 const fixture = new ViewFixture({
359 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