Hi guys,
I used the example of 3 way data binding from Angular website. I also
experience the $$hashKey error while updating.
Where do I strip the $$hashKey?
var ref = new Firebase("https://profile-web.firebaseio.com/");
// create an AngularFire reference to the data
var sync = $firebase(ref);
// download the data into a local object
var syncObject = sync.$asObject();
// synchronize the object with a three-way data binding
// click on `index.html` above to see it used in the DOM!
syncObject.$bindTo($scope, "data");
Problems occur when I go "Fotogalerie" and click that little (i) icon to
toggle description
http://tr.tomasreichmann.cz
On Tuesday, March 26, 2013 9:04:34 PM UTC+1, Sergey Gurevich wrote:
>
> Hi!
>
> Here! use this:
>
> $scope.ngObjFixHack = function(ngObj) {
> var output;
>
> output = angular.toJson(ngObj);
> output = angular.fromJson(output);
>
> return output;
> }
>
> This also fixes angularJS issue where ng-repeat was not effected by order
> changes due to $$hashKey.
>
> I came up with it when sorting an object (slice) didn't effect HTML
> display of mg-repeat.
>
>
> Cheers
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.