Skip to content
CloudDueling.com edited this page Sep 7, 2013 · 1 revision

#####Uncaught Error: Firebase.set failed: First argument contains undefined In this case the error is due to the $scope variable not being defined before the reference was created.

$scope.fire = {
    product: {}, // This will fix it.
    refs: {
        product: new Firebase($scope.firebaseUrl + "/products/" + $scope.productId),
    }
};

angularFire($scope.fire.refs.product, $scope, "fire.product");
Clone this wiki locally