Gopalakrishnan R
Gopalakrishnan R

Reputation: 41

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

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

Upvotes: 1

Views: 98

Answers (0)

Related Questions