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

Using error event and error substates together

$
0
0

@ykaragol wrote:

In a route’s model hook, sometimes promises may fail. In this cases:

  1. if the user are transitioning from one route to another: abort transition so that stay at the previous route and show an error popup.
  2. if the user is directly opening that route from an outside link: show the error substate.

How can I handle both cases? In the error hook, is there a way to understand whether the previous route is transitioning from somewhere else or not?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4836

Trending Articles