Angular [routerLink] how to write data binding

  <li nz-submenu [(nzOpen)]="item.open" *ngFor="let item of menuList">
      <span title>{{item.parent}}</span>
      <ul>
          <li nz-menu-item [routerLink]="["/{item.path}"]" routerLinkActive="active" *ngFor="let item  of item.children">{{item.child}}</li>
      </ul>
  </li>

[routerLink] = "["/ {item.path}"]" what should I write here

Apr.01,2021

directly [routerLink] = "item.path"


[routerLink] = "/ {item.path}}"


is there a more concise way to write about judgment? I really feel redundant to judge one step at a time.

unblocked games

Menu