# AclDemo
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.6.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
## Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
采用权限码对路由和页面元素进行标记,用户登录时,后台返回用户具有权限的全部权限码,页面通过将路由或元素的权限码与用户权限码进行匹配,判断用户是否具有权限。对于路由地址,没有权限将阻止访问并重定向到指定路由,对于页面元素,没有权限将移除元素。 路由配置: { path: 'a1', component: A1Component, canActivate: [AclGuard], data: { acl: "a.a1" } }, { path: 'a2', component: A2Component, canActivate: [AclGuard], data: { acl: "a.a2" } }, html模板配置: <button [acl]="'a.a1.user.btn1'">普通用户按钮1</button> <button [acl]="'a.a1.admin.btn1'">管理员按钮1</button> 代码说明: https://blog.csdn.net/evanyanglibo/article/details/128549843
资源推荐
资源详情
资源评论

























收起资源包目录


































































共 48 条
- 1
资源评论


_老杨_
- 粉丝: 1899
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 数据库原理及应用第2章.ppt
- 基于聚类的二次异常入侵检测算法.docx
- 单片机人体脉搏检测系统设计.doc
- 电气基础知识讲座IT计算机专业资料.ppt
- 无线网络安全论文设计.docx
- 异步通信与同步通信.ppt
- 基于应用人才培养模式的计算机网络课程教改研究.docx
- DVBCQAM调制主要参数选择与测试.doc
- PLC的交流异步电机转速闭环控制系统设计.doc
- 计算机系统配套零、部件竞争策略分析报告.docx
- 《信息系统集成技术实践》课程大纲.doc
- 基于数据挖掘的针灸治疗重症肌无力的现代文献取穴规律分析.docx
- 电力信息网络安全存在问题及对策分析.docx
- 基于 Python 的自动驾驶规划与控制代码实现
- 下半年软考系统集成项目管理测验真题(上午).doc
- 自动化PLC课程设计实施方案指导书.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
