我以某种方式创建了自定义 HTML 属性,现在我需要删除它们,但我无法在自定义 HTML 属性的设置列表中的任何位置找到它,因此我可以删除它们...
有人能说一下属性存放的地方吗?
我无法在任何地方找到如何创建对我从数组动态创建的组件的引用?
HTML
<div *ngFor="let item of items">
<my-component [data]="item.data"></my-component>
</div>
Run Code Online (Sandbox Code Playgroud)
我需要访问<my-component>TypeScript代码中的每个(将从数组动态创建)
例:
该length的items阵列是2所以在打字稿代码,然后我需要有这样的事情.
myComponent0 - 对1的引用. <my-component>
myComponent1 - 对2的引用. <my-component>
谢谢