So I have a lazy module loader that loads components into a specialized UI framework I'm writing into Angular. I have a need to define 2 places where HTML gets emitted, one being for a toolbar-type control, and the other being for more generalized markup. These would ideally exist in the same template and component, so that no additional bindings need to be added for them to interop.
#How to segment a Component into two distinct outputs
2 messages · Page 1 of 1 (latest)
Currently I'm achieving this with 2 components, but at the point of binding the event listeners between them I realize things are a bit rocky. I'd like to be able to use a single component, and emit it into 2 ng-templates, but have a single reference. I can't offload this into a service because I may have multiple instances of these components.