producerAccessed 里面会把 firstNameNode push 到 fullNameNode.producerNode array 里, 还有把 firstNameNode.version push 到 fullNameNode.producerLastReadVersion array 里。 computed 的原理 computed 在执行 formula 前会先调用 setActiveConsumer。 相关源码在computed.ts 这样就把 producer (firstNameNode, last...
viewQuery create mode 会创建 TQueries 和 LQueries,它们是 ArrayLike 对象。 里面装了 TQuery 和 LQuery。一个 @ViewChildren 就会产生一个 TQuery 和 LQuery。 TQuery 记入了我们要 query 什么,要 read 什么,比如:Template Variables、组件、指令、Provider 等等。 组件template 方法是用来创建 TView 里的 ...
create a navigation that only updates query params using an empty command array, for example `router.navigate([], {relativeTo: route, queryParams: newQueryParams})`. In this case, the `relativeTo` property should be removed. ## Deprecations ### core - `makeStateKey`, `StateKey` and `Tr...
| [](https://github.com/angular/angular/commit/5b66330329fd066a7c347f040a330b4c7f2a0a2b) | allow non-array imports for standalone component in local compilation mode (#51819) | | [,},sharedMappings:['shared-lib'],}); ...
HoverDirectiveis in thedeclarationsarray in theAppModule, which means that it can be used in the components in the module. Next, inhover.directive.ts, we write: import{Directive,ElementRef,HostListener,Input}from"@angular/core";@Directive({selector:"[appHover]",})exportclassHoverDirective{@Input...
toolbarHiddenButtonsstring[][]-noSet of the array of button names or elements to hide toolbarHiddenButtons:[['undo','redo','bold','italic','underline','strikeThrough','subscript','superscript','justifyLeft','justifyCenter','justifyRight','justifyFull','indent','outdent','insertUnorderedList...
controller {String} | {Array} | {Object} Controller that will be used for the dialog window if necessary. The controller can be specified either by referring it by name or directly inline. ngDialog.open({template:'externalTemplate.html',controller:'SomeController'}); ...