feat($injector): support instantiating classes.
ES6's `class Foo {}` constructors cannot be instantiated using
`fn.apply`. This change extracts injection argument collection and then
uses new (Function.bind.apply(ctor, args)) to instantiate the service
instance.
Closes: #12598
Closes: #12597 M
Martin Probst committed
8b6b42827186e5e4eb7a56f6b824c560a5058bd2
Parent: 8f0b482
Committed by Lucas Mirelmann <lgalfaso@gmail.com>
on 12/10/2015, 8:17:42 PM