I created some dynamic components, for example -
<div> <ang-textfield></ang-textfield> <ang-textarea></ang-textarea> <ang-checkbox></ang-checkbox> </div>
Within a particular dynamic component there are some elements, such as -
<ang-textfield> <input type="text" /> <button>Settings</button> <button (click)="remove_component()">Remove</button> </ang-textfield>
I want to remove the current component after clicking the Remove button.
How can i do this?
Here is the plunker
source share