{"action":"created","issue":{"url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/358","repository_url":"https://api.github.com/repos/Urigo/angular2-meteor","labels_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/358/comments","events_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/358/events","html_url":"https://github.com/Urigo/angular2-meteor/pull/358","id":168068044,"number":358,"title":"Added MeteorObservables and MongoObservables wrappers with RxJS","user":{"login":"dotansimha","id":3680083,"avatar_url":"https://avatars.githubusercontent.com/u/3680083?v=3","gravatar_id":"","url":"https://api.github.com/users/dotansimha","html_url":"https://github.com/dotansimha","followers_url":"https://api.github.com/users/dotansimha/followers","following_url":"https://api.github.com/users/dotansimha/following{/other_user}","gists_url":"https://api.github.com/users/dotansimha/gists{/gist_id}","starred_url":"https://api.github.com/users/dotansimha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotansimha/subscriptions","organizations_url":"https://api.github.com/users/dotansimha/orgs","repos_url":"https://api.github.com/users/dotansimha/repos","events_url":"https://api.github.com/users/dotansimha/events{/privacy}","received_events_url":"https://api.github.com/users/dotansimha/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Urigo/angular2-meteor/labels/In%20Progress","name":"In Progress","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-07-28T10:55:51Z","updated_at":"2016-07-30T07:53:55Z","closed_at":"2016-07-28T14:04:08Z","pull_request":{"url":"https://api.github.com/repos/Urigo/angular2-meteor/pulls/358","html_url":"https://github.com/Urigo/angular2-meteor/pull/358","diff_url":"https://github.com/Urigo/angular2-meteor/pull/358.diff","patch_url":"https://github.com/Urigo/angular2-meteor/pull/358.patch"},"body":"@Urigo \r\n\r\nUsage example for Collection and Cursor:\r\n```\r\nlet collection = new MongoObservable.Collection(\"test\");\r\nlet ob : Observable = collection.find({});\r\nob.subscribe((col) => {\r\n   console.log(\"new data:\", col);\r\n});\r\n```\r\n\r\nAnd then in the View:\r\n```\r\n<div *ngFor=\"let item of ob | async\"></div>\r\n```\r\n\r\nUsage example for Meteor.call:\r\n```\r\nMeteorObservable.call(\"myMethod\").subscribe((response) => {\r\n   console.log(\"server response:\", response);\r\n}, (error : Meteor.Error) => {\r\n   console.log(\"Error!\", error);\r\n});\r\n```\r\n\r\nUsage example for Meteor.subscribe:\r\n```\r\nMeteorObservable.subscribe(\"myMethod\").subscribe(() => {\r\n   console.log(\"ready!\");\r\n}, (error : Meteor.Error) => {\r\n   console.log(\"Error!\", error);\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/comments/236351649","html_url":"https://github.com/Urigo/angular2-meteor/pull/358#issuecomment-236351649","issue_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/358","id":236351649,"user":{"login":"dotansimha","id":3680083,"avatar_url":"https://avatars.githubusercontent.com/u/3680083?v=3","gravatar_id":"","url":"https://api.github.com/users/dotansimha","html_url":"https://github.com/dotansimha","followers_url":"https://api.github.com/users/dotansimha/followers","following_url":"https://api.github.com/users/dotansimha/following{/other_user}","gists_url":"https://api.github.com/users/dotansimha/gists{/gist_id}","starred_url":"https://api.github.com/users/dotansimha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotansimha/subscriptions","organizations_url":"https://api.github.com/users/dotansimha/orgs","repos_url":"https://api.github.com/users/dotansimha/repos","events_url":"https://api.github.com/users/dotansimha/events{/privacy}","received_events_url":"https://api.github.com/users/dotansimha/received_events","type":"User","site_admin":false},"created_at":"2016-07-30T07:53:55Z","updated_at":"2016-07-30T07:53:55Z","body":"@barbatus Fixed! "}}
{"actor":{"display_login":"dotansimha"}}