Hi, we're currently working on some UI using Angular (currently 2.3.1, but we may upgrade to 4.0 or the upcoming 4.1 if necessary).
We need some kind of plugin mechanism where users can add plugins into our application. As an example we want to have some table displaying some data, which we will get from the server. Now, the user should be able to add his own columns with custom data and rendering (e. G. text, numbers, images, etc...) to the data. Under the hood, this will be most likely some "property bag" or dictionary we have on the server side, with key value pairs. On the client (Angular) side, we intend to define some "ITableColumn" interface which can be implemented by our customers' components. That interface provides properties for metadata like a column description, a comparison callback for sorting the column, etc. Our plan is to have some configuration on the server which tells the order of the columns (and their respecitive components), allowing the user to freely mixing predefined and user-defined columns. (If possible, we'd even prefer to implement our own columns using the same ITableColumn mechanism, for the sake of consistency and orthogonality.) Then our to-be-written table component can use the configuration to arrange the columns when rendering the table. However, we got somehow stuck on how to best approach this problem. How to dynamically add components to a parent component? How to create an SDK for the plugin developers? How to deploy everything, or more concrete, how to allow for deployment and dynamically loading of those components, maybe from a database on the server (we almost complete control on the server side...)? Could you give us any pointers or examples? Thanks in advance, Markus Schaber -- 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.
