I'm trying to use NgxPermissionsService as singleton acroo main app and some libraries. the permissions will be loaded by one library and other libraries and main app has to use the same permissions loaded.
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
Current behavior
Unable to make the service singleton and there is no documentation to explain this scenario.
Expected behavior
Update in the documentation to explain how to share the service and directives across app and libraries
Minimal reproduction of the problem with instructions
Angular version: 15.2.4
ngx-permissions version: 14.0.0
Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [x] Edge version XX
I'm trying to use NgxPermissionsService as singleton acroo main app and some libraries. the permissions will be loaded by one library and other libraries and main app has to use the same permissions loaded.
I'm submitting a...
Current behavior
Unable to make the service singleton and there is no documentation to explain this scenario.
Expected behavior
Update in the documentation to explain how to share the service and directives across app and libraries
Minimal reproduction of the problem with instructions
@NgModule({ declarations: [ ], imports: [ HttpClientModule, NgxPermissionsModule ] }) export class MyLibModule{}</code
NgxPermissionsModule.forRoot(), MyLibModule.forRoot(),
Environment