I have a main element that must verify if it includes a specific kind of element within all currently displayed elements:
In app.element.html:
<router-outlet></router-outlet>
In app.element.ts:
@ViewChildren(ElementToLocate) query: QueryList<ElementToLocate>;
However, when I go to a page that has an element of type ElementToLocate, the _results property in QueryList does not return anything.
Is there a way to retrieve all elements of a certain type within the visible element structure, even if they are displayed through router-outlet?