I have this situation in a component now:
<a [routerLink]="[pageUrl] | localize" *ngIf="pageUrl">
<img />
</a>
<ng-container *ngIf="!pageUrl">
<img />
</ng-container>
Ofcourse the image-tag can be much more. The thing is: I don't want to repeat myself. Can I solve this with an ng-template or something like that, and how would this work?