{"action":"created","issue":{"url":"https://api.github.com/repos/sveltejs/svelte/issues/68","repository_url":"https://api.github.com/repos/sveltejs/svelte","labels_url":"https://api.github.com/repos/sveltejs/svelte/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/sveltejs/svelte/issues/68/comments","events_url":"https://api.github.com/repos/sveltejs/svelte/issues/68/events","html_url":"https://github.com/sveltejs/svelte/issues/68","id":192641647,"number":68,"title":"Dynamic component creation?","user":{"login":"mrkishi","id":150237,"avatar_url":"https://avatars.githubusercontent.com/u/150237?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkishi","html_url":"https://github.com/mrkishi","followers_url":"https://api.github.com/users/mrkishi/followers","following_url":"https://api.github.com/users/mrkishi/following{/other_user}","gists_url":"https://api.github.com/users/mrkishi/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkishi/subscriptions","organizations_url":"https://api.github.com/users/mrkishi/orgs","repos_url":"https://api.github.com/users/mrkishi/repos","events_url":"https://api.github.com/users/mrkishi/events{/privacy}","received_events_url":"https://api.github.com/users/mrkishi/received_events","type":"User","site_admin":false},"labels":[{"id":485407406,"url":"https://api.github.com/repos/sveltejs/svelte/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-30T18:23:53Z","updated_at":"2016-11-30T19:55:45Z","closed_at":null,"body":"Hello,\r\n\r\nIs there a way (or plans) to create components dynamically? Akin to Vue's `<component :is>`, perhaps.\r\n\r\nSomething that allows us to, for instance, initialize a different component for each item in a list:\r\n\r\n```html\r\n{{#for children as component}}\r\n    <!-- use or initialize component -->\r\n{{/for}}\r\n```\r\n\r\nwhere `children` could be a list of component types for construction, or maybe even component instance references for direct usage?"},"comment":{"url":"https://api.github.com/repos/sveltejs/svelte/issues/comments/263977343","html_url":"https://github.com/sveltejs/svelte/issues/68#issuecomment-263977343","issue_url":"https://api.github.com/repos/sveltejs/svelte/issues/68","id":263977343,"user":{"login":"mrkishi","id":150237,"avatar_url":"https://avatars.githubusercontent.com/u/150237?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkishi","html_url":"https://github.com/mrkishi","followers_url":"https://api.github.com/users/mrkishi/followers","following_url":"https://api.github.com/users/mrkishi/following{/other_user}","gists_url":"https://api.github.com/users/mrkishi/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkishi/subscriptions","organizations_url":"https://api.github.com/users/mrkishi/orgs","repos_url":"https://api.github.com/users/mrkishi/repos","events_url":"https://api.github.com/users/mrkishi/events{/privacy}","received_events_url":"https://api.github.com/users/mrkishi/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T19:55:45Z","updated_at":"2016-11-30T19:55:45Z","body":"Oooh, the `ComponentSwitcher` format seems very flexible.\r\n\r\nI can't go with the `if` blocks because I don't want to create compile-time dependencies between these components (code-splitting and all that), but I can certainly work with the js API like your second example.\r\n\r\nThank you!"}}
{"actor":{"display_login":"mrkishi"}}