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

How do I find out if I'm inside an engine?

$
0
0

@jnfingerle wrote:

Hi,

I'm writing a route mixin that is supposed to call this.transitionToExternal when used inside an engine and this.transitionTo otherwise. Is there a way to reliably find out if I'm inside an engine?

Currently I'm using Boolean(Ember.getOwner(this).dependencies), but a blessed way would be great.

Cheers,
Jan Niklas

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles