Can component invoke a self destroy event
<p>I have a parent component which opens a new component on click of a link, this new component is supposed to have a close button which on close sends a closing message to parent and destroy itself.</p>

<p>We can send the closing message using <code>ngOnDestroy</code> method, but how do I invoke the destroying of the child component.</p>

<pre class="lang-ts prettyprint-override"><code>&lt;parent&gt;
    &lt;child&gt;&lt;/child&gt; //child to be opened on click but close 
                    //event should be inside the child componenet
&lt;/parent&gt;
</code></pre>

<p>Do correct me if i am having some conceptual mistake here. Thanks</p>