Skip to content

Commit

Permalink
[DOC beta] Improve Route#render documentation
Browse files Browse the repository at this point in the history
This PR makes explicit that render only accepts a live template
as its `into` option.

Fix emberjs#14046
  • Loading branch information
Serabe committed Aug 13, 2016
1 parent 6f54026 commit 2236950
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ember-routing/lib/system/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,8 @@ let Route = EmberObject.extend(ActionHandler, Evented, {
The string values provided for the template name, and controller
will eventually pass through to the resolver for lookup. See
Ember.Resolver for how these are mapped to JavaScript objects in your
application.
application. The template to render into needs to be related to either the
current route or one of its ancestors.
Not all options need to be passed to `render`. Default values will be used
based on the name of the route specified in the router or the Route's
Expand Down

0 comments on commit 2236950

Please sign in to comment.