Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

Create @Controller, @Widget, @Service, @Provider decorators #2

Closed
bartekn opened this issue Jun 9, 2015 · 1 comment
Closed

Create @Controller, @Widget, @Service, @Provider decorators #2

bartekn opened this issue Jun 9, 2015 · 1 comment

Comments

@bartekn
Copy link
Contributor

bartekn commented Jun 9, 2015

Think about how to create:

  • @Controller decorator to annotate controller classes,
  • @Widget decorator to annotate widget directives,
  • @Service decorator to annotate service classes,
  • @Provider decorator to annotate provider classes.

The best way to do it would be without a use of any kind of preprocessors. We need this to get rid of:

module.exports = function(mod) {
  mod.directive("directiveName", directiveWidget);
};

lines.

@bartekn
Copy link
Contributor Author

bartekn commented Jun 9, 2015

Idea: @Widget decorator could be used to annotate widget's controller. Widget directive then could be created automatically.

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

No branches or pull requests

1 participant