I need help creating a link for a column cell in my angular grid with a dynamic job id, like /jobs/3/job-maintenance/general. In this case, 3 is the job id. I have element.jobId available. How can I achieve this?
Here is the code for the existing column:
<ng-container cdkColumnDef="jobName">
<th cdk-header-cell *cdkHeaderCellDef>
<span class="cursor-pointer" (click)="doSort('jobName')">Job Name</span>
<span *ngIf="sortKey === 'jobName'"> {{ sortDirection === 'asc' ? '↑' : '↓' }}
</span>
</th>
<td cdk-cell *cdkCellDef="let element">
<u *ngIf="!hasContainedName(element.jobName); else contain"
class="text-primary cursor-pointer">{{element.jobName}}</u>
<ng-template #contain>{{element.jobName}}</ng-template>
</td>
</ng-container>