I'm fairly new to angular and have set a project up using requirejs and angular but doing fairly simple stuff with UI.
My question is using angular, how do you go about creating a component/control that can be reused and added to at runtime. For example, in jquery I'd probably create a plugin and dynamically add dom elements before calling the plugin on the element.
i.e. $(el).append("").mycontrol({opts:1});
I've not really started with angular templates and repeats but thinking this is possibly the way to go, but how to you "bootstrap" new controls added dynamically.
The example I have in mind is that i'm using ui-select2 (AngularUI) and I would like to include the select2 component in some panels that are dynamically added to the dom.
The other solution of course would be to call the select2 function from the ng controller that added the host dom element.
any info welcomed