Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. "someData":
  2. |_______>"01": (take note this is a key:value, not intended to be array index)
  3. | |_______"child1"
  4. | |_______"child2"
  5. |_______>"02":
  6. |_______"child3"
  7. |_______"child4"
  8.  
  9. var ref = new Firebase("https://myURL.firebaseio.com/someData");
  10. var sync = $firebase(ref);
  11. var someData = sync.$asObject();
  12.  
  13. "someData" [with its children stored as OBJECT]:
  14. |_______>"01" [with its children stored as OBJECT]:
  15. | |_______"child1"
  16. | |_______"child2"
  17. |_______>"02" [with its children stored as OBJECT]
  18. |_______"child3"
  19. |_______"child4"
  20.  
  21. "someData" [with its children stored as ARRAY]:
  22. |_______>"01" [with its children stored as OBJECT]:
  23. | |_______"child1"
  24. | |_______"child2"
  25. |_______>"02" [with its children stored as OBJECT]
  26. |_______"child3"
  27. |_______"child4"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement