У меня есть компонент, чей шаблон выглядит примерно так:
<div [my-custom-directive]>Some content here</div>
Мне нужен доступ к MyCustomDirective
класса MyCustomDirective
используется здесь. Когда я хочу получить доступ к дочернему компоненту, я использую запрос ViewChild
.
Есть ли эквивалентная функция для получения доступа к дочерней директиве?