Looking to populate an unordered list element <ul>
with small, straightforward snippets from my JavaScript. Just basic lines like <li>Label: Text</li>
.
Using the
ViewContainerRef.createComponent(ItemComponent)
method to create a new component for each list item seems like too much overhead for such simple HTML snippets.
What is the most efficient way to insert these uncomplicated HTML snippets into the DOM without needing a complete component?