{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/templating/issues/137","labels_url":"https://api.github.com/repos/aurelia/templating/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/templating/issues/137/comments","events_url":"https://api.github.com/repos/aurelia/templating/issues/137/events","html_url":"https://github.com/aurelia/templating/issues/137","id":97541258,"number":137,"title":"Template part replacement within repeat \"leaks\" to other instances of custom element","user":{"login":"Vlemert","id":343610,"avatar_url":"https://avatars.githubusercontent.com/u/343610?v=3","gravatar_id":"","url":"https://api.github.com/users/Vlemert","html_url":"https://github.com/Vlemert","followers_url":"https://api.github.com/users/Vlemert/followers","following_url":"https://api.github.com/users/Vlemert/following{/other_user}","gists_url":"https://api.github.com/users/Vlemert/gists{/gist_id}","starred_url":"https://api.github.com/users/Vlemert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vlemert/subscriptions","organizations_url":"https://api.github.com/users/Vlemert/orgs","repos_url":"https://api.github.com/users/Vlemert/repos","events_url":"https://api.github.com/users/Vlemert/events{/privacy}","received_events_url":"https://api.github.com/users/Vlemert/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-27T19:47:18Z","updated_at":"2015-07-27T20:05:33Z","closed_at":"2015-07-27T19:52:04Z","body":"Hi,\r\n\r\nI have a custom element, with a simple repeat construction inside. Within the repeat is a replaceable template. When I place multiple instances of this custom element on a page, and replace the template in some of those instances, the template gets replaced in all instances. The version of the replaced template is the one in the last instance of my custom element.\r\n\r\nThis only occurs within a repeat. Any replaceable template outside of repeats behaves like expected.\r\n\r\n[Plunkr example here](http://embed.plnkr.co/O72uMw/preview), showing how templates within a repeat are affected, those outside the repeat are not.\r\n\r\n[Alternative plunkr example](http://embed.plnkr.co/UCafIh/), showing that if I swap everything around and put the instance that does not define a replace template last, none of the instances will have a replaced template.\r\n\r\nLet me know if you need any more info!"},"comment":{"url":"https://api.github.com/repos/aurelia/templating/issues/comments/125327821","html_url":"https://github.com/aurelia/templating/issues/137#issuecomment-125327821","issue_url":"https://api.github.com/repos/aurelia/templating/issues/137","id":125327821,"user":{"login":"Vlemert","id":343610,"avatar_url":"https://avatars.githubusercontent.com/u/343610?v=3","gravatar_id":"","url":"https://api.github.com/users/Vlemert","html_url":"https://github.com/Vlemert","followers_url":"https://api.github.com/users/Vlemert/followers","following_url":"https://api.github.com/users/Vlemert/following{/other_user}","gists_url":"https://api.github.com/users/Vlemert/gists{/gist_id}","starred_url":"https://api.github.com/users/Vlemert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vlemert/subscriptions","organizations_url":"https://api.github.com/users/Vlemert/orgs","repos_url":"https://api.github.com/users/Vlemert/repos","events_url":"https://api.github.com/users/Vlemert/events{/privacy}","received_events_url":"https://api.github.com/users/Vlemert/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T20:05:33Z","updated_at":"2015-07-27T20:05:33Z","body":"Nice, thanks!\r\n\r\nGuess I just learned that checking all open issues doesn't always cut it..."}}