MCPcopy Create free account
hub / github.com/angular/angular / ɵɵtemplate

Function ɵɵtemplate

packages/core/src/render3/instructions/template.ts:267–294  ·  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

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