i am very new to angular 2, i have some set of dynamically created divs i want to load per-defined components to those div based on user selection. i tried many blogs to load component dynamically but none of them are clear and simple.
what i'am expecting is to know how to load one component to a div on click of a button.
for example
@Component({
selector: 'container',
template: `<div id="container">// need to place the component here on click of a button //</div>`
})
if anybody can provide a plunker or solution is highly appreciated