Thanks for replying Sander.
I think I have narrowed down to below 3 questions:
- How can I get Module "A" to know about the NavBarMenuItem components defined in module "B" so that it can create the component instances and add them to the NavBar component dynamically?
- How can I instantiate a component from its class name as the components are created on fly from the configuration fetched from the store?
- When module “B” is dependent on module “A” then module A cannot be statically depend on module B due to circular dependency problem, without using reflection and runtime composition provided by MEF container how can we solve this?
Thank you Zlatko for your response. You said @Input() layout = 'horizontal' will allow me to configure the NavBar layout but how can I dynamically set the layout?
I am trying to drive the components by json configuration. I will give another example here -
The questions still remain unsolved -
- How can I get Module "A" to know about the NavBarMenuItem components defined in module "B" so that it can create the component instances and add them to the NavBar component dynamically?
- How can I instantiate a component from its class name as the components are created on fly from the configuration fetched from the store?
- When module “B” is dependent on module “A” then module A cannot be statically depend on module B due to circular dependency problem, without using reflection and runtime composition provided by MEF container how can we solve this?