{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/universal/issues/377","repository_url":"https://api.github.com/repos/angular/universal","labels_url":"https://api.github.com/repos/angular/universal/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/angular/universal/issues/377/comments","events_url":"https://api.github.com/repos/angular/universal/issues/377/events","html_url":"https://github.com/angular/universal/issues/377","id":151168851,"number":377,"title":"Rendering issue when routing is used","user":{"login":"barbatus","id":2824096,"avatar_url":"https://avatars.githubusercontent.com/u/2824096?v=3","gravatar_id":"","url":"https://api.github.com/users/barbatus","html_url":"https://github.com/barbatus","followers_url":"https://api.github.com/users/barbatus/followers","following_url":"https://api.github.com/users/barbatus/following{/other_user}","gists_url":"https://api.github.com/users/barbatus/gists{/gist_id}","starred_url":"https://api.github.com/users/barbatus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbatus/subscriptions","organizations_url":"https://api.github.com/users/barbatus/orgs","repos_url":"https://api.github.com/users/barbatus/repos","events_url":"https://api.github.com/users/barbatus/events{/privacy}","received_events_url":"https://api.github.com/users/barbatus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-26T15:41:02Z","updated_at":"2016-04-26T15:41:02Z","closed_at":null,"body":"**Note: for support questions, please use one of these channels:** https://github.com/angular/universal/blob/master/CONTRIBUTING.md#question. This repository's issues are reserved for feature requests and bug reports.\r\n\r\n* **I'm submitting a ...**\r\n- bug report\r\n\r\n* **What modules are related to this pull-request**\r\n- universal\r\n\r\n* **Do you want to request a *feature* or report a *bug*?**\r\nreport a bug\r\n\r\n\r\n* **What is the current behavior?**\r\n\r\nThanks for the awesome library! \r\n\r\n`universal/src/node/bootloader.ts` doesn't wait until Angular2 routing resolves current path to a associated component which leads to this component is not rendered.\r\n\r\n* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem** by creating a github repo.\r\n\r\nThere is a simple Meteor app https://github.com/barbatus/angular2-meteor-universal/tree/master/examples/app, which is a demo of an Universal wrapper for Meteor (https://github.com/barbatus/angular2-meteor-universal).\r\nThe problem particularly is in this [part](https://github.com/barbatus/angular2-meteor-universal/tree/master/examples/app/imports/parties), which uses routing.\r\nIt's deployed and can be checked here http://ng2-ssr.herokuapp.com/parties.\r\n\r\nSome notes:\r\nIf change `<router-outlet />` in the app template to a particular component instead, it starts rendering it on the server properly.\r\nif I make use of `then(waitRouter)` (i.e. uncomment this line  https://github.com/angular/universal/blob/8e0549405c591e8c6044638c97de72b15b91e7d3/modules/universal/src/node/bootloader.ts#L264), rendering starts working almost properly (though not all binding applied).\r\n\r\nThis renderer for Meteor itself is pretty simple and based on the code for Express and Hapi, \r\nplease check it [here](https://github.com/barbatus/angular2-meteor-universal/blob/master/modules/server_renderer.ts).\r\n\r\n* **What is the expected behavior?**\r\n\r\nBootloader waits until routing is done and renders resolved component properly.\r\n\r\n* **What is the motivation / use case for changing the behavior?**\r\n\r\n\r\n* **Please tell us about your environment:**\r\n\r\n- Angular version: 2.0.0-beta.15\r\n- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX ]\r\n- Language: [all | TypeScript X.X | ES6/7 | ES5 ]\r\n- OS:  [all | Mac OS X | Windows | Linux ]\r\n- Platform: [all | NodeJs | Java | PHP | .Net | Ruby]\r\n\r\n\r\n\r\n* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)\r\n"}}