My main Goal is to pass the Model from RouteChildA to the RouteChildB when performing the transition. However, it is giving me all sorts of errors when i do this:
model(params) {
// do some lookup with params.route_child_b_id
}
Bear in mind if you pass the model directly (and not by id) as in your sample above, then the model hook will not be called in RouteChildB as you are passing the model already.
Finally, if this code is in a route or controller you don’t need this.get('router').transitionTo, instead you can call this.transitionTo(“Routeparent.RouteChildB”) or this.TransitionToRoute(“Routeparent.RouteChildB”) respectively.