{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/12859","repository_url":"https://api.github.com/repos/emberjs/ember.js","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/12859/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/12859/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/12859/events","html_url":"https://github.com/emberjs/ember.js/issues/12859","id":128277068,"number":12859,"title":"Cannot unregister component template","user":{"login":"jakedetels","id":8092406,"avatar_url":"https://avatars.githubusercontent.com/u/8092406?v=3","gravatar_id":"","url":"https://api.github.com/users/jakedetels","html_url":"https://github.com/jakedetels","followers_url":"https://api.github.com/users/jakedetels/followers","following_url":"https://api.github.com/users/jakedetels/following{/other_user}","gists_url":"https://api.github.com/users/jakedetels/gists{/gist_id}","starred_url":"https://api.github.com/users/jakedetels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakedetels/subscriptions","organizations_url":"https://api.github.com/users/jakedetels/orgs","repos_url":"https://api.github.com/users/jakedetels/repos","events_url":"https://api.github.com/users/jakedetels/events{/privacy}","received_events_url":"https://api.github.com/users/jakedetels/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-23T00:28:54Z","updated_at":"2016-03-27T21:54:52Z","closed_at":"2016-03-27T21:54:52Z","body":"The `Ember.ApplicationInstance#unregister` method fails to fully unregister a component template.  See twiddle here: https://ember-twiddle.com/47dd2375c095cd7e73e5\r\n\r\nI can successfully register a component template using:\r\n\r\n```js\r\nlet template = Ember.Handlebars.compile('<b>First x-foo</b>');\r\napplication.register('template:components/x-foo', template );\r\n```\r\n\r\nHowever, when I try unregistering this template followed by registering a different compiled template in its place, the original template is the one that gets rendered.\r\n\r\n```js\r\napplication.unregister('template:components/x-foo');\r\nlet newTemplate = Ember.Handlebars.compile('<b>New x-foo</b>');\r\napplication.register('template:components/x-foo', newTemplate );\r\n```\r\n\r\nIn the twiddle demo, clicking \"Register Template\" will register the first compiled template.  Then, clicking \"Change Template\" will first unregister the old template, followed by loading a new complied template.  Yet when the component template is rendered, we still see the original compiled template.  This demo utilizes the `{{component}}` helper to load the registered component template.\r\n\r\ncc @dgeb (possibly related to commit https://github.com/emberjs/ember.js/commit/53267df64d1e11ce8312c129946e309667887215)"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/202153522","html_url":"https://github.com/emberjs/ember.js/issues/12859#issuecomment-202153522","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/12859","id":202153522,"user":{"login":"mixonic","id":8752,"avatar_url":"https://avatars.githubusercontent.com/u/8752?v=3","gravatar_id":"","url":"https://api.github.com/users/mixonic","html_url":"https://github.com/mixonic","followers_url":"https://api.github.com/users/mixonic/followers","following_url":"https://api.github.com/users/mixonic/following{/other_user}","gists_url":"https://api.github.com/users/mixonic/gists{/gist_id}","starred_url":"https://api.github.com/users/mixonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixonic/subscriptions","organizations_url":"https://api.github.com/users/mixonic/orgs","repos_url":"https://api.github.com/users/mixonic/repos","events_url":"https://api.github.com/users/mixonic/events{/privacy}","received_events_url":"https://api.github.com/users/mixonic/received_events","type":"User","site_admin":false},"created_at":"2016-03-27T21:54:52Z","updated_at":"2016-03-27T21:54:52Z","body":"As we have no response from @jakedetels, I'm going to provisionally mark this wontfix and close it."}}