I don't want to bombard with you so many replies but you know, as I am 
writing more to you I am getting a better picture of the problem!

I am trying to develop a core library that will provide implementation of 
configuration driven components than can be extended in the referring 
modules to create components. This library will be packaged to npm and can 
be installed from there.

For example - The core library, lets call it "A", provides NavBar component 
that can host child NavBarMenuItem components dynamically. Module "A" then 
exports the NavBarMenuItem component. And another module called "B" imports 
module "A" and creates various menu bar items by implementing 
NavBarMenuItem component class.

The NavBar component defined in "A" is configurable and can be configured 
to render NavBarMenuItem in different ways (let say horizontally or 
vertically). A configuration editor component NavBarEditorComponent is 
provided by the core which is used to make any changes to the NavBar. I can 
load this editor from the context menu of the NavBarComponent and make 
changes to it and the save it to the configuration store.

So the question is - 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?

Can you think of a design and available api's in Angular which can cater 
these requirements?


Thanks

-- 
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.

Reply via email to