Angular Router 导航
重定向路由
在用户访问一个特定的地址时,将其重新定向到另一个指定的地址。
www.aaa.com => www.aaa.com/products
www.aaa.com/x => www.aaa.com/y
Description
redirectionTo is the url fragment which will replace the current matched segment(redirectionTo 是URL 片段将取代目前的匹配段)
本文介绍如何在Angular应用中使用Angular Router进行URL重定向,如www.aaa.com/products和www.aaa.com/y,通过redirectionTo属性控制页面跳转并替换当前路径段。
在用户访问一个特定的地址时,将其重新定向到另一个指定的地址。
www.aaa.com => www.aaa.com/products
www.aaa.com/x => www.aaa.com/y
Description
redirectionTo is the url fragment which will replace the current matched segment(redirectionTo 是URL 片段将取代目前的匹配段)
275

被折叠的 条评论
为什么被折叠?