Skip to content
Snippets Groups Projects
Verified Commit 846fcb1d authored by Jonas Leder's avatar Jonas Leder
Browse files

navigate to "buchung" when clicking on element

parent bcfc0b27
No related branches found
No related tags found
No related merge requests found
......@@ -26,5 +26,5 @@
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;" (click)="rowClicked(row)"></tr>
</table>
\ No newline at end of file
......@@ -42,6 +42,10 @@ export class BestandComponent implements OnInit {
});
}
rowClicked(row: Product) {
window.location.href = "/#/buchung?item=" + row.id
}
ngOnDestroy() {
this.querySubscription.unsubscribe();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment