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

A case for evented models

$
0
0

Hello,

I’ve read the discussion in:

And I understand the ration beneath such decision. However I have this scenario that I don’t see how to properly implement without event handlers:

Suppose some external event (e.g. a websocket message) informs me (a service) that a model has been destroyed server-side. I would like to see if the current route is using such model and transition away.

An evented approach would be to listen to model’s destroy event and act within the route itself, however this is deprecated. How should this should be addressed otherwise?

Thanks!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4870

Trending Articles