[Feature request] Get the selector scope of a module
GrandSchtroumpf opened this issue · comments
Hello,
I would like to get the selector scope of a specifc module. I'm not sure how to perform that based on a ModuleSymbol, and I think it can be a great feature to add. any idea how I could do that ?
I would be glad to do a PR if you think it would be usefull too.
Thanks.
Ok my bad, I was looking at the wrong class.
For future readers, you need to look at one of the DirectiveSymbol
of the ModuleSymbol
to get the selector scope:
const selectors = directiveSymbol.getDirectiveContext().directives.map(summary => summary.selector);