MCPcopy Index your code
hub / github.com/angular/angular / ɵɵtemplate

Function ɵɵtemplate

packages/core/src/render3/instructions/template.ts:266–293  ·  view source on GitHub ↗
(
  index: number,
  templateFn: ComponentTemplate<any> | null,
  decls: number,
  vars: number,
  tagName?: string | null,
  attrsIndex?: number | null,
  localRefsIndex?: number | null,
  localRefExtractor?: LocalRefExtractor,
)

Source from the content-addressed store, hash-verified

264 * @codeGenApi
265 */
266export function ɵɵtemplate(
267 index: number,
268 templateFn: ComponentTemplate<any> | null,
269 decls: number,
270 vars: number,
271 tagName?: string | null,
272 attrsIndex?: number | null,
273 localRefsIndex?: number | null,
274 localRefExtractor?: LocalRefExtractor,
275): typeof ɵɵtemplate {
276 const lView = getLView();
277 const tView = getTView();
278 const attrs = getConstant<TAttributes>(tView.consts, attrsIndex);
279 declareDirectiveHostTemplate(
280 lView,
281 tView,
282 index,
283 templateFn,
284 decls,
285 vars,
286 tagName,
287 attrs,
288 undefined,
289 localRefsIndex,
290 localRefExtractor,
291 );
292 return ɵɵtemplate;
293}
294
295/**
296 * Creates an LContainer for an ng-template that cannot have directives.

Callers 1

CompClass · 0.90

Calls 4

getLViewFunction · 0.90
getTViewFunction · 0.90
getConstantFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…