ɵɵtemplate和ng-template的对应关系
模板中每个ng-template,会触发函数ɵɵtemplate:
ɵɵtemplate里会自动创建一个comment element,通过方法createComment完成:
ɵɵtemplate函数内部会创建一个comment element.
/*** Creates an LContainer for an ng-template (dynamically-inserted view), e.g.** <ng-template #foo>* <div></div>* </ng-template>** @param index The index of the container in the data array* @param templateFn Inline template* @param decls The number of nodes, local refs, and pipes for this template* @param vars The number of bindings for this template* @param tagName The name of the container element, if applicable* @param attrsIndex Index of template attributes in the `consts` array.* @param localRefs Index of the local references in the `consts` array.* @param localRefExtractor A function which extracts local-refs values from the template.* Defaults to the current element associated with the local-ref.** @codeGenApi*/
更多Jerry的原创文章,尽在:“汪子熙”:
ɵɵtemplate和ng-template的对应关系相关推荐
- 如何增加MOSS 2007中list template和site template的最大值
在不同的站点和列表间传递相同设置的时候, 把已有的站点和列表存为模板是非常方便的一种方式. 然而, 默认情况下, 站点和列表模板的大小是有上限的, 为10MB. 如果你试图存一个超过10MB的站点为模 ...
- ITS Mobile Template interpretation failed. Template does not exist
ITS Mobile Template interpretation failed. Template does not exist 在SE80创建完ITS Mobile 应用后,SICF创建相同名称 ...
- html/template 和 text/template区别
文章目录 前言 html/template text/template 前言 最近在学习go template,跟着一篇文章进行例程的学习,结果发现无论怎么调试,都没有办法复现例程的打印结果 纠结了一 ...
- text/template与html/template的区别
text/template 是将内容都已text文本格式返回. html/tempalte针对的是需要返回HTML内容的场景. 在模板渲染过程中会对一些有风险的内容进行转义,以此来防范跨站脚本攻击. ...
- Java 设计模式 --- Template 模式 Java Template 模式 Java 模板设计模式
Java 设计模式 --- Template 模式 Java Template 模式 Java 模板设计模式 一.概述 模板设计模式: 父类定义通用抽象的功能方法,子类负责具体的实现. 本文将以一个通 ...
- exception processing, template error resolving template
exception processing, template error resolving template 错误信息:Exception processing template "/vi ...
- cannot bind to cxOutlet since it is not a known property of ng template
我在SAP Spartacus处于运行状态(即ng serve)始终处于运行状态时,进行代码热修改,经常遇到此类错误消息 退出ng serve,重新执行即可: 更多Jerry的原创文章,尽在:&quo ...
- python template open_python and Template.
也许说法不正确,但是目前我能理解的就是替换,替换指定文本中的内容. 例如: $title$ $content$ Top 我要做的只是替换其中特定格式的 $code$,$title$,$conent$, ...
- [vue] `<template></template>`有什么用?
[vue] <template></template>有什么用? 包裹嵌套其它元素,使元素具有区域性,自身具有三个特点: *隐藏性:不会显示在页面中 *任意性:可以写在页面的任 ...
- 【Aegisub相关】template table 和 template environment table
相关链接:https://blog.csdn.net/Seekladoom/article/details/120127302 template table(t表) templates.once te ...
最新文章
- css3滤镜Filter使用
- Android系统架构基本模式解析
- category使用 objc_setAssociatedObject/objc_getAssociatedObject 实现添加属性
- 软件开发中的几种数据交换协议
- php json 美化,php JSON数据格式化(美化)的方法
- 【英语学习】【Daily English】U07 Restaurant L01 What's a seafood paella, though?
- springboot static访问不到_Spring Boot 的静态资源处理
- java 访问频率限制_配置URL的访问频率限制
- 在小程序端获取数据库所有符合条件的数据(使用分页突破20条限制)
- android 小学课程,小学课堂(小学学习软件)
- 数据库存储I/O类型分析与配置
- C#轻量级通通讯组件StriveEngine —— C/S通信开源demo(2) —— 使用二进制协议 (附源码)...
- Zorin OS:Windows用户无痛转移Linux
- 菜鸟也疯狂,易语言自绘控件__按钮篇,用所有者自绘方式实现
- 大学计算机应用基础教程读后感,计算机应用基础的课程学习体会
- 使用JdbcTemplate报 Incorrect column count: expected 1, actual 9错误解决
- 基于matlab的立体图像编码解码算法仿真与分析
- js和jquery验证密码必须为字母加数字
- STM32通过串口下载程序教程
- C#DBHelper_FactoryDB_GetConn