Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从组件的视图模板中获取所有画布元素。画布元素在 ngFor 中呈现,所以我可以在视图模板中有 0,... 画布元素。我需要抓住它们并使用组件方法来绘制它们。我如何编写一个选择器来抓取嵌套在视图模板中的 DOM 中的所有画布元素?