{"action":"closed","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/11251","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/11251/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/11251/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/11251/events","html_url":"https://github.com/emberjs/ember.js/issues/11251","id":79225414,"number":11251,"title":"Route vs Resource and the resetNamespace option","user":{"login":"AhmadH","id":5494,"avatar_url":"https://avatars.githubusercontent.com/u/5494?v=3","gravatar_id":"","url":"https://api.github.com/users/AhmadH","html_url":"https://github.com/AhmadH","followers_url":"https://api.github.com/users/AhmadH/followers","following_url":"https://api.github.com/users/AhmadH/following{/other_user}","gists_url":"https://api.github.com/users/AhmadH/gists{/gist_id}","starred_url":"https://api.github.com/users/AhmadH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AhmadH/subscriptions","organizations_url":"https://api.github.com/users/AhmadH/orgs","repos_url":"https://api.github.com/users/AhmadH/repos","events_url":"https://api.github.com/users/AhmadH/events{/privacy}","received_events_url":"https://api.github.com/users/AhmadH/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-22T00:55:54Z","updated_at":"2015-08-02T17:14:25Z","closed_at":"2015-08-02T17:14:25Z","body":"Since 1.11.0, `this.resource` has been deprecated in favour of nested `this.route`. However, the difference in namespacing behaviour requires a large refactor involving moving route and template files and folders around and changing many references in `link-to` and `transitionTo` calls. In addition to requiring a refactor, it also breaks the analogy between the model tree and the route/template tree.\r\n\r\nPassing `{ resetNamespace: true }` as an option to `this.route` results in the namespacing behaviour of a resource. This has been proposed as an easy way to remove the deprecated  `this.resource` usage from applications. (See [Erik Bryn's Ember 2.0 Talk] at 11:10 and this [StackOverflow Answer])\r\n\r\nHowever, `resetNamespace` is not a documented public API and if I understand the code correctly, it is merely a flag for the router to differentiate between `this.route` and `this.resource`. Therefore, it would stand to reason that when `this.resource` is removed, `resetNamespace` will be removed with it.\r\n\r\nAn official statement regarding this may save the community a lot of unexpected grief as users follow the stability without stagnation plan.\r\n\r\n[Erik Bryn's Ember 2.0 Talk]: https://www.youtube.com/watch?v=U1HEzVWseng\r\n[StackOverflow Answer]: http://stackoverflow.com/questions/30301937/"}}