I want to set the selection with the value i get from Local-Storage. Here is the code:
HTML:
<p-treeTable [value]="tableDataRow$ | async"
[columns]="checkColumnNotFixed()"
selectionMode="single"
[(selection)]="selectedRow"
>
TS:
public selectedRow;
ngOnInit(): void {
this.selectedRow = LocalStorageSelectedRow;
}
The value is set and can be shown in the console, but in the UI, the row is not selected.