# afterModel argument transition

**URL:** <https://discuss.emberjs.com/t/aftermodel-argument-transition/10520>\
**Category:** Uncategorized\
**Created:** [April 22, 2016, 8:20pm UTC](https://discuss.emberjs.com/t/aftermodel-argument-transition/10520 "2016-04-22T20:20:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtangoo](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mtangoo/32/11677_2.png) [@mtangoo](https://discuss.emberjs.com/u/mtangoo)\
**Post date:** [April 22, 2016, 8:20pm UTC](https://discuss.emberjs.com/t/aftermodel-argument-transition/10520/1 "2016-04-22T20:20:24Z")

</div>

What is exactly transition in [Ember route afterModel](http://emberjs.com/api/classes/Ember.Route.html#method_afterModel) method? The first argument is well explained but not the second. Checking Ember API classes I cannot find any clue of Transition class.

So what exactly is transition?

---

<div class="post-metadata">

**Author:** ![Ben\_Glancy](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@Ben\_Glancy](https://discuss.emberjs.com/u/Ben_Glancy)\
**Post date:** [April 22, 2016, 9:12pm UTC](https://discuss.emberjs.com/t/aftermodel-argument-transition/10520/2 "2016-04-22T21:12:51Z")

</div>

Isn’t it the same transition as was passed to the model. The one that brought the thread of execution to that route.

---

<div class="post-metadata">

**Author:** ![mtangoo](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mtangoo/32/11677_2.png) [@mtangoo](https://discuss.emberjs.com/u/mtangoo)\
**Post date:** [April 22, 2016, 9:26pm UTC](https://discuss.emberjs.com/t/aftermodel-argument-transition/10520/3 "2016-04-22T21:26:38Z")

</div>

What is transition to be exact? Is it class with properties? Or asking it another way, transition is an instance of which class?

---

<div class="post-metadata">

**Author:** ![Ben\_Glancy](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@Ben\_Glancy](https://discuss.emberjs.com/u/Ben_Glancy)\
**Post date:** [April 23, 2016, 12:22am UTC](https://discuss.emberjs.com/t/aftermodel-argument-transition/10520/4 "2016-04-23T00:22:06Z")

</div>

[http://emberjs.joefiorini.com/api/classes/Transition.html](http://emberjs.joefiorini.com/api/classes/Transition.html) Found this on web

---

<div class="post-metadata">

**Author:** ![mtangoo](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mtangoo/32/11677_2.png) [@mtangoo](https://discuss.emberjs.com/u/mtangoo)\
**Post date:** [April 23, 2016, 9:26am UTC](https://discuss.emberjs.com/t/aftermodel-argument-transition/10520/5 "2016-04-23T09:26:00Z")

</div>

Did you check the version? It seems v.1.0.x In Ember API that class does not exist. I guess I will have to use Console.Log

---

<div class="post-metadata">

**Author:** ![alexspeller](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/alexspeller/32/14812_2.png) [@alexspeller](https://discuss.emberjs.com/u/alexspeller)\
**Post date:** [April 24, 2016, 10:19pm UTC](https://discuss.emberjs.com/t/aftermodel-argument-transition/10520/6 "2016-04-24T22:19:09Z")

</div>

Transition is from [router.js](https://github.com/tildeio/router.js/) library. Detail is [here](https://github.com/tildeio/router.js/blob/master/lib/router/transition.js)
