标签: javascript html angular typescript
我想实现这一目标:
<div #component></div>
与此:
const el = this.renderer2.createElement('div'); el.setAttribute('#component')
我可以这样做吗?还是有其他方法可以实现这一目标?