I'm rendering dynamically created components from a component array with *ngFor
with a <dcl-wrapper [type]="t"></dcl-wapper>
component described in this answer
I'm trying to add a remove button to the component so I could remove the component on button click with myCompArray.splice(index, 1)
but it allways removes the last one
here is my plunker http://plnkr.co/edit/4lhuHF?p=preview