Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Documents resetNamespace: true #373

Merged
merged 1 commit into from
Jun 23, 2015
Merged

Conversation

jayphelps
Copy link
Contributor

Documents resetNamespace: true for nested routes which supersedes this.resource()

emberjs/ember.js#11517

@@ -198,6 +198,96 @@ Visiting `/posts` is slightly different. It will first render the
Finally, visiting `/posts/new` will first render the `posts` template,
then render the `posts/new` template into its outlet.

#### Resetting Nested Route Namespace

When nesting routes, it may be beneficial for a child route to not inherit its ancestors name. This allows you to reference and reuse a given route in multiple route trees as well as keep the class name short. This is equivalent to the behavior of the now deprecated `this.resource()` function.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as keep the class name short

Minor nitpick: in modules world the issue is with directory nesting not class name (as the actual class name does not ever need to be typed out).

rwjblue added a commit that referenced this pull request Jun 23, 2015
@rwjblue rwjblue merged commit 50fbb43 into emberjs:master Jun 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants