Get reference to a directive used in a component
<p>I have a component whose template looks something like this:</p>

<pre><code>&lt;div [my-custom-directive]&gt;Some content here&lt;/div&gt;
</code></pre>

<p>I need access to the <code>MyCustomDirective</code> class instance used here. When I want to get access to a child component, I use a <code>ViewChild</code> query.</p>

<p>Is there an equivalent feature to get access to a child directive?</p>