@jpirok wrote:
I have inherited an application built on Ember 2.13. I came across an error handling service that had the following:
export default Ember.Service.extend({ routing: Ember.inject.service('-routing'),
The idea is that this service routes to an error page when necessary. (This is part of the application’s global error handling.)
Is this acceptable? Are there any caveats to using this in a service? Is there a better way to accomplish routing from a service?
Thanks in advance!
Posts: 4
Participants: 3