ngComponent icon indicating copy to clipboard operation
ngComponent copied to clipboard

Add controller support

Open Hendrixer opened this issue 9 years ago • 0 comments

Right now there is no support for directive controllers on the Component prototype. Two ways to use them are:

new Component({
  controller: function($http){ // DI
  }
})

or

new Component()
  .controller(function(){ // DI
  }) // No chaining here
  .start() // won't work

Hendrixer avatar Apr 09 '15 00:04 Hendrixer