我有这样的事情:
<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>
是否可以获得对#barChart的引用?由于ng-template包装引用,@ ViewChild不起作用。