Right now, it looks a bit strange not to define 'inject' property but in the future defining services or directives could not be necessary to define it.
The problem is that if you don't define 'inject' the var __classDepNames is undefined and breaks the execution at init time. I would suggest to initialize depNames using a default value fallback when classObject.inject is undefined, something like: depNames = classObj.inject || {}
I think the code related to this area of Classy is a bit confusing. I'm considering dropping support for named dependencies to make the code a bit cleaner. Any thoughts?
Hi again!
Right now, it looks a bit strange not to define 'inject' property but in the future defining services or directives could not be necessary to define it.
The problem is that if you don't define 'inject' the var __classDepNames is undefined and breaks the execution at init time. I would suggest to initialize depNames using a default value fallback when classObject.inject is undefined, something like: depNames = classObj.inject || {}
Regards