在mvc中,我为角7创建了一个区域。
我将路线设置为
const routes: Routes = [
{
path: '',
redirectTo: '/Listing/Listings',
pathMatch: 'full',
},
{
path: 'Listing/Listings',
component: AppComponent
},]
我在我的区域内有一个列表控件,并且我有一个索引操作
我正尝试如下添加新路线
const routes: Routes = [
{
path: '',
redirectTo: '/Listing/Listings',
pathMatch: 'full',
},
{
path: 'Listing/Listings',
component: AppComponent
},
{ path: 'Listing/Listings/:id', component: TableComponent },
{ path: 'Listing/Listings/Details', component: TableComponent },
];
http://localhost:9101/Listing/Listings =>路由正常,无法看到我的东西,
但是当我尝试其他2条路由时,它似乎试图调用mvc路由器。我该如何解决?