I building a basic drag and drop that has various prepared HTML that you can drag and drop into the page.
I got a object with the list of HTML that you can drag
element=[
text: {html: '<p> asdasdasdas</p>'},
list: {html: '<ul><li></li></ul>'};
img: {html: '<img src="placeholder.jpg"/>'}
]
How to inject the html into the page?
Or should I be creating the HTML snippets as component and than having a referenced in the elements object to the component selector and injecting the angular selector and rendering the view?