{"action":"opened","number":129,"pull_request":{"url":"https://api.github.com/repos/angular/angularfire2/pulls/129","id":66215300,"html_url":"https://github.com/angular/angularfire2/pull/129","diff_url":"https://github.com/angular/angularfire2/pull/129.diff","patch_url":"https://github.com/angular/angularfire2/pull/129.patch","issue_url":"https://api.github.com/repos/angular/angularfire2/issues/129","number":129,"state":"open","locked":false,"title":"feat(database): Accept url or ref for .list() and .object()","user":{"login":"davideast","id":4570265,"avatar_url":"https://avatars.githubusercontent.com/u/4570265?v=3","gravatar_id":"","url":"https://api.github.com/users/davideast","html_url":"https://github.com/davideast","followers_url":"https://api.github.com/users/davideast/followers","following_url":"https://api.github.com/users/davideast/following{/other_user}","gists_url":"https://api.github.com/users/davideast/gists{/gist_id}","starred_url":"https://api.github.com/users/davideast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davideast/subscriptions","organizations_url":"https://api.github.com/users/davideast/orgs","repos_url":"https://api.github.com/users/davideast/repos","events_url":"https://api.github.com/users/davideast/events{/privacy}","received_events_url":"https://api.github.com/users/davideast/received_events","type":"User","site_admin":false},"body":"Closes #77. Both `af.database.list()` and 'af.database.object()' can now accept a Firebase database reference or a url string.\r\n\r\nExample:\r\n\r\n```ts\r\nexport class MyApp {\r\n \r\n  constructor(private _af: AngularFire, @Inject(FirebaseRef) ref: Firebase) {\r\n    const db = this._af.database;\r\n    const itemsRef = ref.child('items');\r\n    const itemOneRef = itemsRef.child('1');\r\n    itemOneRef.onDisconnect().remove();\r\n    const objRef = db.object(itemOneRef).set({ name: 'David' });\r\n    objRef.then(err => console.log(err || 'No errors!'));\r\n  }\r\n  \r\n}\r\n```","created_at":"2016-04-12T19:39:30Z","updated_at":"2016-04-12T19:39:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angular/angularfire2/pulls/129/commits","review_comments_url":"https://api.github.com/repos/angular/angularfire2/pulls/129/comments","review_comment_url":"https://api.github.com/repos/angular/angularfire2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/angularfire2/issues/129/comments","statuses_url":"https://api.github.com/repos/angular/angularfire2/statuses/d6dcdcfd7f4c84b71049a98effde9ba6934758b2","head":{"label":"davideast:master","ref":"master","sha":"d6dcdcfd7f4c84b71049a98effde9ba6934758b2","user":{"login":"davideast","id":4570265,"avatar_url":"https://avatars.githubusercontent.com/u/4570265?v=3","gravatar_id":"","url":"https://api.github.com/users/davideast","html_url":"https://github.com/davideast","followers_url":"https://api.github.com/users/davideast/followers","following_url":"https://api.github.com/users/davideast/following{/other_user}","gists_url":"https://api.github.com/users/davideast/gists{/gist_id}","starred_url":"https://api.github.com/users/davideast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davideast/subscriptions","organizations_url":"https://api.github.com/users/davideast/orgs","repos_url":"https://api.github.com/users/davideast/repos","events_url":"https://api.github.com/users/davideast/events{/privacy}","received_events_url":"https://api.github.com/users/davideast/received_events","type":"User","site_admin":false},"repo":{"id":56009335,"name":"angularfire2","full_name":"davideast/angularfire2","owner":{"login":"davideast","id":4570265,"avatar_url":"https://avatars.githubusercontent.com/u/4570265?v=3","gravatar_id":"","url":"https://api.github.com/users/davideast","html_url":"https://github.com/davideast","followers_url":"https://api.github.com/users/davideast/followers","following_url":"https://api.github.com/users/davideast/following{/other_user}","gists_url":"https://api.github.com/users/davideast/gists{/gist_id}","starred_url":"https://api.github.com/users/davideast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davideast/subscriptions","organizations_url":"https://api.github.com/users/davideast/orgs","repos_url":"https://api.github.com/users/davideast/repos","events_url":"https://api.github.com/users/davideast/events{/privacy}","received_events_url":"https://api.github.com/users/davideast/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davideast/angularfire2","description":"The official Angular 2 library for Firebase.","fork":true,"url":"https://api.github.com/repos/davideast/angularfire2","forks_url":"https://api.github.com/repos/davideast/angularfire2/forks","keys_url":"https://api.github.com/repos/davideast/angularfire2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davideast/angularfire2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davideast/angularfire2/teams","hooks_url":"https://api.github.com/repos/davideast/angularfire2/hooks","issue_events_url":"https://api.github.com/repos/davideast/angularfire2/issues/events{/number}","events_url":"https://api.github.com/repos/davideast/angularfire2/events","assignees_url":"https://api.github.com/repos/davideast/angularfire2/assignees{/user}","branches_url":"https://api.github.com/repos/davideast/angularfire2/branches{/branch}","tags_url":"https://api.github.com/repos/davideast/angularfire2/tags","blobs_url":"https://api.github.com/repos/davideast/angularfire2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davideast/angularfire2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davideast/angularfire2/git/refs{/sha}","trees_url":"https://api.github.com/repos/davideast/angularfire2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davideast/angularfire2/statuses/{sha}","languages_url":"https://api.github.com/repos/davideast/angularfire2/languages","stargazers_url":"https://api.github.com/repos/davideast/angularfire2/stargazers","contributors_url":"https://api.github.com/repos/davideast/angularfire2/contributors","subscribers_url":"https://api.github.com/repos/davideast/angularfire2/subscribers","subscription_url":"https://api.github.com/repos/davideast/angularfire2/subscription","commits_url":"https://api.github.com/repos/davideast/angularfire2/commits{/sha}","git_commits_url":"https://api.github.com/repos/davideast/angularfire2/git/commits{/sha}","comments_url":"https://api.github.com/repos/davideast/angularfire2/comments{/number}","issue_comment_url":"https://api.github.com/repos/davideast/angularfire2/issues/comments{/number}","contents_url":"https://api.github.com/repos/davideast/angularfire2/contents/{+path}","compare_url":"https://api.github.com/repos/davideast/angularfire2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davideast/angularfire2/merges","archive_url":"https://api.github.com/repos/davideast/angularfire2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davideast/angularfire2/downloads","issues_url":"https://api.github.com/repos/davideast/angularfire2/issues{/number}","pulls_url":"https://api.github.com/repos/davideast/angularfire2/pulls{/number}","milestones_url":"https://api.github.com/repos/davideast/angularfire2/milestones{/number}","notifications_url":"https://api.github.com/repos/davideast/angularfire2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davideast/angularfire2/labels{/name}","releases_url":"https://api.github.com/repos/davideast/angularfire2/releases{/id}","deployments_url":"https://api.github.com/repos/davideast/angularfire2/deployments","created_at":"2016-04-11T21:34:27Z","updated_at":"2016-04-11T21:34:28Z","pushed_at":"2016-04-12T19:35:18Z","git_url":"git://github.com/davideast/angularfire2.git","ssh_url":"git@github.com:davideast/angularfire2.git","clone_url":"https://github.com/davideast/angularfire2.git","svn_url":"https://github.com/davideast/angularfire2","homepage":"https://angularfire2.com","size":126,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"angular:master","ref":"master","sha":"fa775e46c4aebb819a78ecd32a8c226124097314","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":49453413,"name":"angularfire2","full_name":"angular/angularfire2","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/angularfire2","description":"The official Angular 2 library for Firebase.","fork":false,"url":"https://api.github.com/repos/angular/angularfire2","forks_url":"https://api.github.com/repos/angular/angularfire2/forks","keys_url":"https://api.github.com/repos/angular/angularfire2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/angularfire2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/angularfire2/teams","hooks_url":"https://api.github.com/repos/angular/angularfire2/hooks","issue_events_url":"https://api.github.com/repos/angular/angularfire2/issues/events{/number}","events_url":"https://api.github.com/repos/angular/angularfire2/events","assignees_url":"https://api.github.com/repos/angular/angularfire2/assignees{/user}","branches_url":"https://api.github.com/repos/angular/angularfire2/branches{/branch}","tags_url":"https://api.github.com/repos/angular/angularfire2/tags","blobs_url":"https://api.github.com/repos/angular/angularfire2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/angularfire2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/angularfire2/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/angularfire2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/angularfire2/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/angularfire2/languages","stargazers_url":"https://api.github.com/repos/angular/angularfire2/stargazers","contributors_url":"https://api.github.com/repos/angular/angularfire2/contributors","subscribers_url":"https://api.github.com/repos/angular/angularfire2/subscribers","subscription_url":"https://api.github.com/repos/angular/angularfire2/subscription","commits_url":"https://api.github.com/repos/angular/angularfire2/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/angularfire2/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/angularfire2/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/angularfire2/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/angularfire2/contents/{+path}","compare_url":"https://api.github.com/repos/angular/angularfire2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/angularfire2/merges","archive_url":"https://api.github.com/repos/angular/angularfire2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/angularfire2/downloads","issues_url":"https://api.github.com/repos/angular/angularfire2/issues{/number}","pulls_url":"https://api.github.com/repos/angular/angularfire2/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/angularfire2/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/angularfire2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/angularfire2/labels{/name}","releases_url":"https://api.github.com/repos/angular/angularfire2/releases{/id}","deployments_url":"https://api.github.com/repos/angular/angularfire2/deployments","created_at":"2016-01-11T20:47:23Z","updated_at":"2016-04-11T21:36:15Z","pushed_at":"2016-04-12T19:31:51Z","git_url":"git://github.com/angular/angularfire2.git","ssh_url":"git@github.com:angular/angularfire2.git","clone_url":"https://github.com/angular/angularfire2.git","svn_url":"https://github.com/angular/angularfire2","homepage":"https://angularfire2.com","size":135,"stargazers_count":115,"watchers_count":115,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":28,"forks":27,"open_issues":28,"watchers":115,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/angularfire2/pulls/129"},"html":{"href":"https://github.com/angular/angularfire2/pull/129"},"issue":{"href":"https://api.github.com/repos/angular/angularfire2/issues/129"},"comments":{"href":"https://api.github.com/repos/angular/angularfire2/issues/129/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/angularfire2/pulls/129/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/angularfire2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/angularfire2/pulls/129/commits"},"statuses":{"href":"https://api.github.com/repos/angular/angularfire2/statuses/d6dcdcfd7f4c84b71049a98effde9ba6934758b2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":8,"additions":289,"deletions":196,"changed_files":7}}