fixed transaction submission
This commit is contained in:
@@ -58,18 +58,13 @@ transactionControllers.controller('TransactionListCtrl', [ '$scope', '$location'
|
||||
|
||||
}
|
||||
|
||||
$scope.refreshAccount = function() {
|
||||
console.log('BINGO!');
|
||||
$scope.refreshList();
|
||||
};
|
||||
|
||||
$scope.postTransaction = function() {
|
||||
|
||||
// via Resource (might be moved into a service)
|
||||
var Transaction = $resource('/transactions');
|
||||
|
||||
var newTransaction = new Transaction({
|
||||
"account" : $scope.account,
|
||||
"account" : $scope.account._links.self.href,
|
||||
"amount" : $scope.transaction.amount,
|
||||
"date" : $scope.transaction.date,
|
||||
"description" : $scope.transaction.description,
|
||||
|
||||
Reference in New Issue
Block a user