简体   繁体   中英

How to provide a context for a Ember route callback

Newbie Alarm!

I have a little master/detail view: http://jsbin.com/ijicor/112/edit

In the callback functions for connectOutlets and serialize the context is always undefined. What do I miss and how can I access the member data?

I had to do 2 things. In line 11 I had to provide event as a parameter: router.transitionTo('member', event); and so the connectOutlets function does not receive a context but an event as parmeter. I found this out with a debugger and think the documentation is wrong here.

Here is a working example http://jsbin.com/ijicor/122/edit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM