{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular/issues/6737","labels_url":"https://api.github.com/repos/angular/angular/issues/6737/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/6737/comments","events_url":"https://api.github.com/repos/angular/angular/issues/6737/events","html_url":"https://github.com/angular/angular/issues/6737","id":129330138,"number":6737,"title":"Ng2 DynamicComponentLoader builds UI in an unexpected manner","user":{"login":"gufi","id":327083,"avatar_url":"https://avatars.githubusercontent.com/u/327083?v=3","gravatar_id":"","url":"https://api.github.com/users/gufi","html_url":"https://github.com/gufi","followers_url":"https://api.github.com/users/gufi/followers","following_url":"https://api.github.com/users/gufi/following{/other_user}","gists_url":"https://api.github.com/users/gufi/gists{/gist_id}","starred_url":"https://api.github.com/users/gufi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gufi/subscriptions","organizations_url":"https://api.github.com/users/gufi/orgs","repos_url":"https://api.github.com/users/gufi/repos","events_url":"https://api.github.com/users/gufi/events{/privacy}","received_events_url":"https://api.github.com/users/gufi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-28T04:13:09Z","updated_at":"2016-01-28T04:13:09Z","closed_at":null,"body":"http://plnkr.co/edit/wq8AAo49kMLrwR8wfI24?p=preview\r\n                                                VS\r\nhttp://plnkr.co/edit/lqeKnF4a7XCY0rLDU0k1?p=preview\r\n\r\nin the top plunker I setup something that adds an alternating element that I add to the dom using the DynamicComponentLoader in NG2. \r\n\r\nIn the example you see it shows Hello and world repeated, but the code actually adds them alternating, or at least attempts to.\r\n\r\n\r\nI havn’t been able to figure out why this happens as of yet other than the fact that the loader is async. I can only assume that it is building out the elements by type. \r\n\r\nMy use case for this was that I needed to be able to take a paragraph of somewhat markdowned text and re assemble it with a modified dom\r\n\r\n“ Some Text [Symbol] Some more text and things [Symbol2] etc “\r\n\r\nWith the first example my modified ui becomes \r\n\r\n“Some Text Some More Text and things etc [Symbol1] [Symbol2]”\r\n\r\nAnyway thought it was interesting to see that even if you add the items in order using the dynamic loader your results may not reflect what you expect.\r\n\r\nif this is the expected behavior please close immediatly. and potentially let me know if my workaround is the right way to accomplish it?\r\n"}}