{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/1594","labels_url":"https://api.github.com/repos/angular/angular/issues/1594/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/1594/comments","events_url":"https://api.github.com/repos/angular/angular/issues/1594/events","html_url":"https://github.com/angular/angular/issues/1594","id":71950115,"number":1594,"title":"Redo bootstrapping logic","user":{"login":"mhevery","id":111951,"avatar_url":"https://avatars.githubusercontent.com/u/111951?v=3","gravatar_id":"","url":"https://api.github.com/users/mhevery","html_url":"https://github.com/mhevery","followers_url":"https://api.github.com/users/mhevery/followers","following_url":"https://api.github.com/users/mhevery/following{/other_user}","gists_url":"https://api.github.com/users/mhevery/gists{/gist_id}","starred_url":"https://api.github.com/users/mhevery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhevery/subscriptions","organizations_url":"https://api.github.com/users/mhevery/orgs","repos_url":"https://api.github.com/users/mhevery/repos","events_url":"https://api.github.com/users/mhevery/events{/privacy}","received_events_url":"https://api.github.com/users/mhevery/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tbosch","id":690815,"avatar_url":"https://avatars.githubusercontent.com/u/690815?v=3","gravatar_id":"","url":"https://api.github.com/users/tbosch","html_url":"https://github.com/tbosch","followers_url":"https://api.github.com/users/tbosch/followers","following_url":"https://api.github.com/users/tbosch/following{/other_user}","gists_url":"https://api.github.com/users/tbosch/gists{/gist_id}","starred_url":"https://api.github.com/users/tbosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbosch/subscriptions","organizations_url":"https://api.github.com/users/tbosch/orgs","repos_url":"https://api.github.com/users/tbosch/repos","events_url":"https://api.github.com/users/tbosch/events{/privacy}","received_events_url":"https://api.github.com/users/tbosch/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/32","html_url":"https://github.com/angular/angular/milestones/M9:%20Fixit","labels_url":"https://api.github.com/repos/angular/angular/milestones/32/labels","id":1088284,"number":32,"title":"M9: Fixit","description":null,"creator":{"login":"naomiblack","id":2286589,"avatar_url":"https://avatars.githubusercontent.com/u/2286589?v=3","gravatar_id":"","url":"https://api.github.com/users/naomiblack","html_url":"https://github.com/naomiblack","followers_url":"https://api.github.com/users/naomiblack/followers","following_url":"https://api.github.com/users/naomiblack/following{/other_user}","gists_url":"https://api.github.com/users/naomiblack/gists{/gist_id}","starred_url":"https://api.github.com/users/naomiblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naomiblack/subscriptions","organizations_url":"https://api.github.com/users/naomiblack/orgs","repos_url":"https://api.github.com/users/naomiblack/repos","events_url":"https://api.github.com/users/naomiblack/events{/privacy}","received_events_url":"https://api.github.com/users/naomiblack/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":2,"state":"open","created_at":"2015-04-28T21:43:13Z","updated_at":"2015-04-29T18:23:11Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-04-29T18:23:11Z","updated_at":"2015-04-29T18:25:40Z","closed_at":null,"body":"```javascript\r\n\r\nng\r\n  .platform([Cookies])\r\n  .createApp([bind(ExceptionHandler).toClass(MyExceptionHandler])\r\n  .loadComponent(MyComponet, [bind(MySerivice].toClass(MyService)]\r\n\r\n\r\nclass Platform {\r\n  dispose()\r\n}\r\n\r\nclass Application {\r\n  componentRef:ComponentRef;\r\n  dispose();\r\n  whenReady() {\r\n  }\r\n}\r\n\r\nclass ComponentRef {\r\n  dispose()\r\n}\r\n\r\nbootstrap(Type, cmpBind, appBind, pltformBind):Application {\r\n  var platform = Platform.create(pltformBind);\r\n  var app = platform.createApp(appBind);\r\n  var componentRef = app.loadComponent(ComponentRef);\r\n  return app;\r\n}\r\n\r\n\r\nbootstrap(MyApp).whenReady((rootComponent) {\r\n  rootComponent.init();\r\n});\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/97532067","html_url":"https://github.com/angular/angular/issues/1594#issuecomment-97532067","issue_url":"https://api.github.com/repos/angular/angular/issues/1594","id":97532067,"user":{"login":"tbosch","id":690815,"avatar_url":"https://avatars.githubusercontent.com/u/690815?v=3","gravatar_id":"","url":"https://api.github.com/users/tbosch","html_url":"https://github.com/tbosch","followers_url":"https://api.github.com/users/tbosch/followers","following_url":"https://api.github.com/users/tbosch/following{/other_user}","gists_url":"https://api.github.com/users/tbosch/gists{/gist_id}","starred_url":"https://api.github.com/users/tbosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbosch/subscriptions","organizations_url":"https://api.github.com/users/tbosch/orgs","repos_url":"https://api.github.com/users/tbosch/repos","events_url":"https://api.github.com/users/tbosch/events{/privacy}","received_events_url":"https://api.github.com/users/tbosch/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T18:25:40Z","updated_at":"2015-04-29T18:25:40Z","body":"I think `Application` should not contain `ComponentRef` as people might call `component.destroy()`, and then they have a weird state of a still ok application with a destroyed root component.\r\nInstead, we might just expose the component instance on `Application`."}}