I recently started learning AngularJS+Firebase. I\'m trying to write in my firebase an object like this:
{
title: \"Personal Information\",
say: [
EDIT: As Anant points out in the comments, in the latest stable version of Angular (1.0.7 atm), you can use angular.copy(obj)
to remove $$hashkey
attributes.
Like Michael said, the '$' in '$$hashKey' is the issue. Angular creates the $$hashKey
properties behind the scenes (see more here: https://groups.google.com/forum/#!topic/angular/pI0IgNHKjxw). I've gotten around this issue by doing something like myRef.push(angular.fromJson(angular.toJson(myAngularObject)))
.