davej / angular-classy

Cleaner class-based controllers with Angular 1
http://davej.github.io/angular-classy/
813 stars 27 forks source link

Support shorthand options for declaring options across all plugins #42

Closed davej closed 9 years ago

davej commented 9 years ago

Instead of:

__options: {
  'bindData': {
    addToScope: false
  },
  'bindMethods': {
    addToScope: false
  }
}

I should be able to write:

__options: {
  addToScope: false
}

Shorthand will apply the option to all plugins.