Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

Is this right? I have an Ember service with routing injected as service

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles