gpt4 book ai didi

angular - 什么是组件装饰器 `queries` 属性

转载 作者:行者123 更新时间:2023-12-02 00:48:25 26 4
gpt4 key购买 nike

我在找 at this page列出所有 @Component 装饰器属性,并且有以下内容:

queries - configure queries that can be injected into the component

我试过谷歌搜索,但网络上没有太多内容。它有什么用?

最佳答案

它实际上与 @ViewChild@ViewChildren@ContentChild@ContentChildren 装饰器相同,但您可以在元数据中定义它们。

参见 https://github.com/angular/angular/blob/12.1.1/packages/core/src/metadata/directives.ts#L221-L258

关于angular - 什么是组件装饰器 `queries` 属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41974854/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com