ngComponent
ngComponent copied to clipboard
Add controller support
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