yukatan / commangular

Command framework for AngularJS
MIT License
83 stars 8 forks source link

Make an '.add' command dynamically to a defined mapTo from a service or controller #15

Open victorsoliveira opened 9 years ago

victorsoliveira commented 9 years ago

I need to make something like that:

Can i do something like that with commangular framework, or just work if i define commands in config step?

yukatan commented 9 years ago

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.