Is it possible to contitionally add the title="" attribute to a div? i want to make it look clean so i dont want to create a second div and using ngIf to hide one or the other.
My div looks like this and it should add a title if permission is true
<div (click)="goToChangelog()" [ngStyle]="{'cursor': (permission) ? 'pointer' : ''}">
Version {{version}}
</div>