Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "someData":
- |_______>"01": (take note this is a key:value, not intended to be array index)
- | |_______"child1"
- | |_______"child2"
- |_______>"02":
- |_______"child3"
- |_______"child4"
- var ref = new Firebase("https://myURL.firebaseio.com/someData");
- var sync = $firebase(ref);
- var someData = sync.$asObject();
- "someData" [with its children stored as OBJECT]:
- |_______>"01" [with its children stored as OBJECT]:
- | |_______"child1"
- | |_______"child2"
- |_______>"02" [with its children stored as OBJECT]
- |_______"child3"
- |_______"child4"
- "someData" [with its children stored as ARRAY]:
- |_______>"01" [with its children stored as OBJECT]:
- | |_______"child1"
- | |_______"child2"
- |_______>"02" [with its children stored as OBJECT]
- |_______"child3"
- |_______"child4"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement