{"action":"opened","issue":{"url":"https://api.github.com/repos/aurelia/templating-resources/issues/265","repository_url":"https://api.github.com/repos/aurelia/templating-resources","labels_url":"https://api.github.com/repos/aurelia/templating-resources/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/templating-resources/issues/265/comments","events_url":"https://api.github.com/repos/aurelia/templating-resources/issues/265/events","html_url":"https://github.com/aurelia/templating-resources/issues/265","id":195524936,"number":265,"title":"Slot > if > repeat creates new elements at wrong DOM position","user":{"login":"zakjan","id":173585,"avatar_url":"https://avatars.githubusercontent.com/u/173585?v=3","gravatar_id":"","url":"https://api.github.com/users/zakjan","html_url":"https://github.com/zakjan","followers_url":"https://api.github.com/users/zakjan/followers","following_url":"https://api.github.com/users/zakjan/following{/other_user}","gists_url":"https://api.github.com/users/zakjan/gists{/gist_id}","starred_url":"https://api.github.com/users/zakjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zakjan/subscriptions","organizations_url":"https://api.github.com/users/zakjan/orgs","repos_url":"https://api.github.com/users/zakjan/repos","events_url":"https://api.github.com/users/zakjan/events{/privacy}","received_events_url":"https://api.github.com/users/zakjan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-14T13:01:08Z","updated_at":"2016-12-14T13:01:08Z","closed_at":null,"body":"**I'm submitting a bug report**\r\n\r\n* **Library Version:**\r\n1.2.0\r\n\r\n\r\n**Please tell us about your environment:**\r\n* **Browser:**\r\nall\r\n\r\n* **Language:**\r\nall\r\n\r\n**Current behavior:**\r\nHaving a template structure such as this:\r\n```\r\n<template>\r\n    <require from=\"./container\"></require>\r\n    <container>\r\n        <template if.bind=\"true\">\r\n            <template repeat.for=\"item of items\">\r\n                ${item}\r\n            </template>\r\n        </template>\r\n        xxx\r\n    </container>\r\n</template>\r\n```\r\ncontainer.html\r\n```\r\n<template>\r\n    <slot></slot>\r\n</template>\r\n```\r\n\r\nNew items added to the array are rendered at the bottom of the container element.\r\n\r\nhttps://gist.run/?id=5c2d55c58bb270bfab2f41026898cd23\r\nClicking on the button produces: 1 2 3 4 xxx 5 6 7 8 9 10 11 12\r\n\r\n**Expected/desired behavior:**\r\nIt should be: 1 2 3 4 5 6 7 8 9 10 11 12 xxx\r\n\r\n* **What is the expected behavior?**"}}
{"actor":{"display_login":"zakjan"}}