我想问是否有办法做到这一点
<button *ngFor="let link of links" routerLink="{{link.value}} <<<< (i want to insert value from array to this
">{{link.Name}}</paper-button>
links = [
{Name:'Menu1' , value:'/Menu1'},
{Name:'Menu2' , value:'/Menu2'},
]
在我的路由器模块中,
{ path: 'Menu1', component: Menu1Component },
{ path: 'Menu2', component: Menu2Component },