I write RBAC permission module and the main idea is that every module may
have own roles. If it is not root module I want that it extends roles from
parent module. And to do this I need to get parent module name inside
forChild. How can I do this?
@NgModule({
imports: [
CommonModule
]
})
export class NgxPermissionModule {
static forChild(roles): ModuleWithProviders {
//i need to get parentModule here
}
}
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.