I'd like to roll an array of objects and use the properties from each index as input parameters of Angular2 components Id like to add to the dom
Bc these components are recursive, I need to use dynamiccomponentloader's function inside of a loop that traverses this array of objects (instead of *ngFor)
I am looking for an example that puts the component's template markup inside of a li (which is inside of a ul).
I am not certain how loadAsRoot, loadIntoLocation, or, loadNextToLocation can append a new li inside of a ul instead of just replacing its previous contents
I would be most grateful for a plnkr or fiddle to demonstrate this. Thank you in advance for your help
...
will "self-destruct" (2) parent iterating over an array/object full of cmpRef references and invokes each element's cmpRef object's destroy() function – Benjamin McFerren May 03 '16 at 15:30