{"comment":{"url":"https://api.github.com/repos/amizony/self-destructing-task-list/comments/11609341","html_url":"https://github.com/amizony/self-destructing-task-list/commit/23f37b3f49ae8c219f414cfad15aef67b22a5f74#commitcomment-11609341","id":11609341,"user":{"login":"chikamichi","id":106689,"avatar_url":"https://avatars.githubusercontent.com/u/106689?v=3","gravatar_id":"","url":"https://api.github.com/users/chikamichi","html_url":"https://github.com/chikamichi","followers_url":"https://api.github.com/users/chikamichi/followers","following_url":"https://api.github.com/users/chikamichi/following{/other_user}","gists_url":"https://api.github.com/users/chikamichi/gists{/gist_id}","starred_url":"https://api.github.com/users/chikamichi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chikamichi/subscriptions","organizations_url":"https://api.github.com/users/chikamichi/orgs","repos_url":"https://api.github.com/users/chikamichi/repos","events_url":"https://api.github.com/users/chikamichi/events{/privacy}","received_events_url":"https://api.github.com/users/chikamichi/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"23f37b3f49ae8c219f414cfad15aef67b22a5f74","created_at":"2015-06-10T11:49:15Z","updated_at":"2015-06-10T11:49:15Z","body":"Reading Firebase's documentation, I can think of another way of handling the fetch, that may solve that exact problem:\r\n\r\n``` js\r\n// ref is your new Firebase(…)\r\nvar refAsObject = ref.$asObject();\r\n\r\nrefAsObject.$loaded(function(data) {\r\n  $rootScope.fireBaseTasks = data;\r\n  // When editing the data, you'd now need to call $save on it to persist to Firebase:\r\n  // $rootScope.fireBaseTasks.$save()\r\n});\r\n```\r\n\r\nThat insight comes from https://calendee.com/2014/09/18/use-loaded-with-firebase-and-angularfire/\r\n\r\nMore information about `$asObject` at https://www.firebase.com/blog/2014-07-30-introducing-angularfire-08.html"}}