{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular/issues/5481","labels_url":"https://api.github.com/repos/angular/angular/issues/5481/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/5481/comments","events_url":"https://api.github.com/repos/angular/angular/issues/5481/events","html_url":"https://github.com/angular/angular/issues/5481","id":118915038,"number":5481,"title":"DynamicComponentLoader: Ability to load components w/ same context as hostLocation elementRef","user":{"login":"adamdbradley","id":452425,"avatar_url":"https://avatars.githubusercontent.com/u/452425?v=3","gravatar_id":"","url":"https://api.github.com/users/adamdbradley","html_url":"https://github.com/adamdbradley","followers_url":"https://api.github.com/users/adamdbradley/followers","following_url":"https://api.github.com/users/adamdbradley/following{/other_user}","gists_url":"https://api.github.com/users/adamdbradley/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdbradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdbradley/subscriptions","organizations_url":"https://api.github.com/users/adamdbradley/orgs","repos_url":"https://api.github.com/users/adamdbradley/repos","events_url":"https://api.github.com/users/adamdbradley/events{/privacy}","received_events_url":"https://api.github.com/users/adamdbradley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-25T20:12:31Z","updated_at":"2015-11-25T20:12:31Z","closed_at":null,"body":"Both `loadNextToLocation` and `loadIntoLocation` allow you to pass providers that the newly created component will use, which works great.\r\n\r\nHowever, I'd also be useful if you could specify that the newly created component uses the same context from hostLocation elementRef which it is going next to. Possibly an additinional arg in these methods?\r\n\r\nWith this functionality we'd be able to automatically generate a modal/dialog service, and when the user creates a new modal it could use the same context as the user's root component."}}