且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在当前视图中加载新视图?

更新时间:2023-12-03 17:01:46

Please concat yout path like this way.

<a routerLink="{{item.id}}/item/new/{{item.name}}">
    <mat-icon class="add_box">add</mat-icon>
</a>

with app.routing.module.ts path like this

{
    path: 'home/:id/item/new/:data', component:LoginComponent
},

try this it should work.