技术标签: TypeScript Angular框架调试 Angular
在观察template执行的时候,如下图所示:展开ng-template时:
会触发函数ɵɵproperty的执行:
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Update a property on a selected element.
*
* Operates on the element selected by index via the {@link select} instruction.
*
* If the property name also exists as an input property on one of the element's directives,
* the component property will be set instead of the element property. This check must
* be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled
*
* @param propName Name of property. Because it is going to DOM, this is not subject to
* renaming as part of minification.
* @param value New value to write.
* @param sanitizer An optional function used to sanitize the value.
* @returns This function returns itself so that it may be chained
* (e.g. `property('name', ctx.name)('title', ctx.title)`)
*
* @codeGenApi
*/
function ɵɵproperty(propName, value, sanitizer) {
const lView = getLView();
const bindingIndex = nextBindingIndex();
if (bindingUpdated(lView, bindingIndex, value)) {
const tView = getTView();
const tNode = getSelectedTNode();
elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, false);
ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);
}
return ɵɵproperty;
}
如果想查看第二行layoutName$变量的值,在debugger里查看arguments:
展开source:
source._value里的header就是layoutName$准备emit出去的值。
更多Jerry的原创文章,尽在:“汪子熙”:
文章浏览阅读9.4k次。最近几天在这边做导入数据的工作,但是遇到了很多问题,还好推迟上线了,不然真的要耽误工时了(谁让专业的DBA们都不见了呢)今天周三了,今天报的错误清一色和前天的一样,而昨天的错误如下:ORA-12592: TNS: 包错误 和 Io 异常: Connection reset by peer: socket write error_insert ora-12592
文章浏览阅读382次。医院挂号系统是基于Java Web技术的SSM框架的系统,基于Mysql数据。对9张数据库表进行增删改查操作。适合毕业设计、课程设计、大作业等。医院挂号系统是基于Java Web技术的SSM框架的系统,基于Mysql数据。对9张数据库表进行增删改查操作。适合毕业设计、课程设计、大作业等。医院挂号系统是基于Java Web技术的SSM框架的系统,基于Mysql数据。对9张数据库表进行增删改查操作。适合毕业设计、课程设计、大作业等。_java后端开发 预约挂号功能 可以使用什么技术
文章浏览阅读9.4k次,点赞5次,收藏28次。Spring Data JPA其诸多优点给我们的工作带来了很多便利,但对于接触不久的同学来说,有些情况让我们头疼。一些复杂的查询,比如涉及到聚合函数、动态多条件等,着实有些棘手。在不够了解的情况下,觉得Spring Data JPA在这方面不太人性化,有时候我们干脆使用原生sql粗暴的来解决这类查询问题。但这与Spring Data JPA的初衷是相悖的,在不断的学习中,慢慢发现Spring Da..._jpa multiselect
文章浏览阅读3.5k次,点赞4次,收藏6次。一、语言:vue样式如下:2.代码:根据长度百分比计算样式<template> <!-- 步骤条盒子 --> <div class="steps-box"> <!-- 步骤条 --> <div class="Article-steps" :class="data.stepList.length <= activeIndex ? 'step-over' : ''" > _vue步骤条 如何实现
文章浏览阅读2.6k次。一、前言实现原理:在C库中,printf()等输出流函数都是通过fputc()这个函数实现的,所以我们通过重映射的方式,修改这个函数的定义使它输出在STM32的寄存器中,便可以实现使用printf()函数在STM32串口上输出数据的功能。二、printf串口打印实现1.使用LL库添加下面的fputc重定义代码://重映射fputc函数,此函数为多个输出函数的基础函数int fputc(int ch, FILE *f){ while (USART_GetFlagStatus(USART1, _ll库printf
文章浏览阅读587次。文章正文: oracle|问题ORACLE常用傻瓜问题1000问 1. Oracle安装完成后的初始口令? internal/oracle sys/change_on_install system/manager scott/tiger sysman/oem_temp 2. ORACLE9IAS WEB CACHE的_oracle编程声明集合
文章浏览阅读1.6w次。MATLAB将多个图画在同一个图中并标注(a)(b)(c)(d)subplot(2,1,1);stem(x),'ko-');xlabel({'采样点';'(a)'});_论文中同一个图(a)(b)怎么标
文章浏览阅读86次。$:shell prompt (命令提示符)In the terminal, first you see$. This is called ashell prompt. It appears when the terminal is ready to accept a command.When you typels, the command line looks at ...
文章浏览阅读1.6k次,点赞2次,收藏15次。序号内容链接地址1Java基础知识面试题(2020最新版)https://thinkwon.blog.csdn.net/article/details/1043906122Java集合容器面试题(2020最新版)https://thinkwon.blog.csdn.net/article/details/1045885513Java异常面试题(2020最..._java 2020 最全总结
文章浏览阅读1.1k次。软件定制开发(Software Customization Development),即通过对软件源代码进行修改或者添加功能的方式,来达到自己定制化需求或解决特定产品或服务需求的一种开发方式。相对于软件外包、系统集成商等更高收费、更复杂的开发模式来说,软件定制开发方式可以节约资源,缩短开发周期,提升工作效率。软件定制开发通常需要具有高度的编程能力、应用知识和沟通技巧,才能快速上手,较为专业的技能也会让客户满意,因此大部分企业在选择定制开发时都会优先考虑此项服务。
文章浏览阅读1.3w次,点赞5次,收藏29次。一、前言_pktgen-dpdk
文章浏览阅读1.1k次。本文将从三个角度来理解GCN的概念,并介绍GCN在NLP中的相关应用。文中所有图片都来自引用文档,侵删。有道云笔记的格式更加,查看可以点击这里。本文结构如下:GCN的理解构造法均值法谱图法GCN在NLP中的相关应用文本分类角色标注翻译关系抽取事件抽取知识图谱总结参考文献GCN的理解构造法【1】GCN层的输入通常是图的结构与每个节点的特征,输出则是节点层面的结果或者图层面的结果(有时候为节点层的池化..._图像模糊修复用gcn吗