Angualr dynamic menu wants to configure routing directly with parameters

data: [
{
action_id: "21"
action_name: ""
action_type: "1"
action_url: "upcoming-tasks/overview"
auth_type: "2"
order: "1"
pid: "0"
{
action_id: "20"
action_name: ""
action_type: "1"
action_url: "0"
auth_type: "1"
order: "2"
pid: "0"
},
son: [
 {action_id: "22", action_name: "", action_type: "2", action_url: "building/list", order: "1"},
{action_id: "26", action_name: "", action_type: "2", action_url: "room/list?state=0", order: "2"}
]
}
The data structure of the

menu is like this
template is rendered

  <ng-container *ngFor="let item of menu">
          <li *ngIf="!item.son" nz-menu-item [nzSelected]="isMenuSelected(item)" (click)="getMenuAction(sonItem)" [routerLink]="["/" + item.action_url]">{{ item.action_name }}</li>
          <li *ngIf="item.son" nz-submenu>
            <div title>{{ item.action_name }}</div>
            <ul>
              <ng-container *ngFor="let sonItem of item.son">
                <li *ngIf="sonItem.action_type < 3" [nzSelected]="isMenuSelected(sonItem)" (click)="getMenuAction(sonItem)" nz-menu-item [routerLink]="["/" + sonItem.action_url]">{{ sonItem.action_name }}</li>
              </ng-container>
            </ul>
          </li>
        </ng-container>

clipboard.png

state

clipboard.png

how can we achieve the function here? if path is passed directly from the backend with parameters

Feb.10,2022

action_url should be put in [queryParams], not in [routerLink].

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e8d8ba-116b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e8d8ba-116b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?