How can I disable the router.navigate
or the link, based on a status?
If the status is a "No" then i can't type the link to edit the Materials?
HTML
<button type="button" (click)="onEditMaterial(material.id)">Edit </button>
TS
onEditMaterial(material_id) {
this.router.navigate(['materials', material_id, 'edit']);
}