Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
victorsoliveira opened this issue Oct 5, 2015 · 1 comment

Comments

@victorsoliveira
Copy link

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?

@yukatan
Copy link
Owner

yukatan commented Oct 13, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants