commangular
commangular copied to clipboard
Make an '.add' command dynamically to a defined mapTo from a service or controller
I need to make something like that:
- Define an event map; $commangularProvider.mapTo('Event').asSequencial()
- Add commands dynamically from an another service or controller; $commangular.map('Event').add('Command')
Can i do something like that with commangular framework, or just work if i define commands in config step?
Commangular build the command execution tree on a angular run block, so at the moment you can't add new commands after the angular configuration stage.
You can do dinamic angular module loading and load new commands in another config block, but never outside.