{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/1297","labels_url":"https://api.github.com/repos/angular/angular/issues/1297/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/1297/comments","events_url":"https://api.github.com/repos/angular/angular/issues/1297/events","html_url":"https://github.com/angular/angular/issues/1297","id":67637066,"number":1297,"title":"Create view message bus","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},"labels":[],"state":"closed","locked":false,"assignee":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/27","html_url":"https://github.com/angular/angular/milestones/m*:%20WebWorker","labels_url":"https://api.github.com/repos/angular/angular/milestones/27/labels","id":1086524,"number":27,"title":"m*: WebWorker","description":null,"creator":{"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},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2015-04-28T00:24:39Z","updated_at":"2015-05-01T17:26:44Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-04-10T16:51:33Z","updated_at":"2015-05-01T17:40:20Z","closed_at":"2015-05-01T17:26:44Z","body":"```\r\n----\r\nRender API:\r\n\r\nclass RenderMessageRef {}\r\n\r\nclass Renderer {\r\n  sendMessage(view:ViewRef, type:string, data:StringMap):RenderMessageRef;\r\n  setMessageDispatcher(view:ViewRef, dispatcher:MessageDispatcher)\r\n}\r\n\r\nclass MessageDispatcher {\r\n  dispatchMessage(type:string, data:StringMap, inReplyTo:RenderMessageRef)\r\n}\r\n\r\n------\r\nApp side:\r\n\r\nclass AppView {\r\n  sendRenderMessage(type:string, data:StringMap):RenderMessageRef;\r\n  waitFor(List<RenderMessageRef>):Promise<List<any>>\r\n}\r\n\r\n-----\r\nRender side (under src/render/dom):\r\n\r\nclass MessageManager {\r\n  handlers:List<MessageHandler>\r\n}\r\n\r\nclass MessageHandler {\r\n  supports(type:string):boolean;\r\n  handle(view:View, type:string, data:StringMap, messageRef:RenderMessageRef)\r\n}\r\n\r\nclass View {\r\n  sendAppMessage(type:string, data:StringMap, inReplyTo:RenderMessageRef)\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/98184882","html_url":"https://github.com/angular/angular/issues/1297#issuecomment-98184882","issue_url":"https://api.github.com/repos/angular/angular/issues/1297","id":98184882,"user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T17:40:20Z","updated_at":"2015-05-01T17:40:20Z","body":"Wow, good to hear, since I wasn't that keen on this message bus and was struggling a bit with the impl. Will look at the actions."}}