I want to show a label if there is data to show:
<ng-template *ngIf="enableValidation(param.boolean)">
<a href="{{param.link}}">
<clr-icon shape="info-standard"></clr-icon> Acceder
</a>
</ng-template>
enableValidation(exist: any) {
if (exist === null) {
return true;
}
}
The problem is that the tag is not shown at > have or do not have data. Thanks.
I edit, if it is null that it does not do anything, but, I declare myData and I paint the a ... But I'm not going either ..
<div *ngIf="{{param.boolean}} === null ; else myData" > </div>
<ng-template #myData>
<a href="{{param.link}}">
<clr-icon shape="info-standard"></clr-icon> Acceder
</a>
</ng-template>