Is there a way to reference a service that's provided at bootstrap in static class methods?
Don't have any code at the moment, but I've been trying standard/boilerplate syntax with Injector
like here. When I resolveAndCreate()
a service (tried other Injector methods too...) new instance is created and bootstraped instance is overwritten.
Intended usecase is with @CanActivate()
decorator. I've been doing awful workaround (-: setting window["__ready__"]
when service is ready and using that in decorator...