Browse Source

update: permission management page

pull/23285/head
sumeyye 1 year ago
parent
commit
f5da5e3358
  1. 9
      docs/en/framework/ui/angular/permission-management.md

9
docs/en/framework/ui/angular/permission-management.md

@ -100,11 +100,10 @@ export class CustomPermissionService extends PermissionService {
}
```
- Then, in `app.module.ts`, provide this service as follows:
- Then, in `app.config.ts`, provide this service as follows:
```js
@NgModule({
// ...
export const appConfig: ApplicationConfig = {
providers: [
// ...
{
@ -112,9 +111,7 @@ export class CustomPermissionService extends PermissionService {
useExisting: CustomPermissionService,
},
],
// ...
})
export class AppModule {}
};
```
That's it. Now, when a directive/guard asks for `PermissionService` from angular, it will inject your service.

Loading…
Cancel
Save