dida-ng-ura-guard
v2.0.1-0
Published
ura angular security gurad
Downloads
56
Maintainers
Readme
angular 路由守卫,访问权限限制
两步,先经过第一层守卫,然后到第二层。
示例如下:
import { FirstGuard,SecondGuard } from 'dida-ng-ura-guard';
FirstGuard.project = "Ura"; FirstGuard.url = "http://localhost:8080"; //路由 path const routes: Routes = [ { path: 'role', canActivate: [FirstGuard, SecondGuard], component: RoleComponent }]