Is it possible to at runtime query the declarations
of a module class that is decorated with an @NgModule
.
@NgModule({
imports: [
...
],
declarations: [
Component1,
Component2,
Component3
]
})
export class MyModule { }
So, what I am trying to accomplish is roughly:
const declarations: Type[] = MyModule.declarations;