I have something like this :
<div class="row">
<ng-template #filtersTemplate let-sidenavFilter="sidenavFilter">
<div class="row flex mt-md-5">
<canvas #barChart id="canvasStacked">{{ chart }}</canvas>
</div>
</ng-template>
</div>
<fn-filter [filters]="filters" [responsive]="false" [template]="filtersTemplate" (onSubmit)="search($event)"></fn-filter>
Is it possible to get a reference to #barChart? @ViewChild does not work due to ng-template wrapping the reference.