How to add dependecies of Roles from one module to another

Hi Everyone,


i have a two module structure for my application- Core  & Ui

i have defined the roles in core module but since my screens are in the UI Module. i need to access them in the Ui Module. I tried to check to do this via dependency but its n ot the right way. Can anyone please help.

Hi @saif sheikh ,

You need to make the roles Public in your core module to access them inside your UI module then publish the core the module and by manage dependencies you can use them inside your UI module.

Regards,

Jitendra

Hi Saif,

what's wrong with adding the roles as a dependency from another module? 

That's the right way to build the architecture.

Regards

Hi Saif,

Just cross verify the public property of roles is set to true only.

Hi @saif sheikh ,

You need to make the roles Public in your core module to access them inside your UI module then publish the core the module and by manage dependencies you can use them inside your UI module.

Regards,

Jitendra

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.