表示全路径完全匹配
比如:路径为' ' 时才重定向到 /index/home
const routes: Routes = [
{
path: '', redirectTo: '/index/home', pathMatch: 'full'
}
];
相反 patchMatch 还有一个值是 prefix
指以 ' ' 开头时即可重定向到 /index/home
表示全路径完全匹配
比如:路径为' ' 时才重定向到 /index/home
const routes: Routes = [
{
path: '', redirectTo: '/index/home', pathMatch: 'full'
}
];
相反 patchMatch 还有一个值是 prefix
指以 ' ' 开头时即可重定向到 /index/home