In the $scope
object, I have:
$scope.current_account_key
: This is the key obtained from my update modal
$scope.current_account
: It contains a name ($scope.current_account.name
) and a description (
$scope.current_account.description
) for the account entry.
My goal is to update an entry in Firebase using these values.
The structure of my Firebase tree is as follows:
accounts
-JL7e0Obv18-Ls6TTkk8
description
name