啥是重定向路由?
在用户访问一个特定的地址时,将其重定向到另一个指定的地址。
http://localhost:4200/home
const routes: Routes = [
{ path : ' ', redirectTo:' /home', pathMatch:' full ' },
{ path:'home' , component: 'HomeComponent' }
];
伊伊吖吖 博主文章分类:angular-cli学习总结 ©著作权
文章标签 angular-cli 文章分类 JavaScript 前端开发
啥是重定向路由?
在用户访问一个特定的地址时,将其重定向到另一个指定的地址。
http://localhost:4200/home
const routes: Routes = [
{ path : ' ', redirectTo:' /home', pathMatch:' full ' },
{ path:'home' , component: 'HomeComponent' }
];
路由时传递数据
Cisco学习笔记-1.路由基础
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M