How to share NgxPermissionsService instances across AppModule, Feature Module and a Library...

Discussão em 'Angular' iniciado por Gopalakrishnan R, Fevereiro 4, 2025.

  1. I'm trying to use ngx-permissions to manage my app permissions.

    My app is depending on a library to share some features to different apps and the permissions will be loaded by this library.

    The problem here is, the library has a different instance than the main app. so the permissions are not available for the app to use.

    Can anybody help me with this, please?

    I tried to import NgxPermissionsModule to the library with forRoot(), with forChild() and without both also. nothing helps sharing the injection from app to library

    Continue reading...

Compartilhe esta Página