会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
欢迎
攀上顶峰
博客园
首页
新随笔
联系
订阅
管理
2024年1月25日
angular 16 路由守卫更新
摘要: 在 angular16 中守卫使用方式进行了更新,route 守卫被弃用(取消了CanActivate的使用),新增了功能性守卫(CanActivateFn),支持 inject 注入,官网提供了一个新的类型 export declare type CanDeactivateFn<T> = (com
阅读全文
posted @ 2024-01-25 09:13 攀上顶峰
阅读(94)
评论(0)
推荐(0)
编辑
公告
谢谢观看