In my application i\'m getting an object from my firebase using $firebaseObject. The use has two options with this object, change it and save the changes in the object or change
You can use $value field of $firebaseObject.
for instance:
var ref = new Firebase("https://.firebaseio.com");
var FBObj1 = $firebaseObject(ref.child('child'));
ref.child('newChild').set(FBObj1.$value);
EDIT:
Since this only works for primitives, you can try something like this:
function getObject(obj) {
var newObj = {};
for (var key in obj) {
if (key.indexOf('$') < 0 && obj.hasOwnProperty(key)) {
newObj[key] = obj[key];
};
}
return newObj;
}
and use getObject(FBObj1) insetad of FBObj1.$value