diff --git a/src/main/resources/static/js/controllers.js b/src/main/resources/static/js/controllers.js index 9a96d3f..36b4214 100644 --- a/src/main/resources/static/js/controllers.js +++ b/src/main/resources/static/js/controllers.js @@ -13,7 +13,7 @@ transactionControllers.controller('TransactionListCtrl', [ '$scope', '$location' } $scope.transaction = { - amount: 1, + amount: undefined, date: new Date() }; @@ -42,9 +42,15 @@ transactionControllers.controller('TransactionListCtrl', [ '$scope', '$location' $scope.accountId = 1; $scope.account = 'http://localhost:8080/accounts/1'; - console.log('initList()'); + //http://localhost:8080/accounts/search/findByUserName?username=betty@mail.com - //$scope.transaction.date = new Date(); +// var accounts = $resource('/accounts/search/findByUserName', { username: $scope.accountId }).get(); + + + + + + console.log('initList()'); $scope.refreshList(); diff --git a/src/main/resources/static/partials/transaction-list.html b/src/main/resources/static/partials/transaction-list.html index dc8415a..af4754d 100644 --- a/src/main/resources/static/partials/transaction-list.html +++ b/src/main/resources/static/partials/transaction-list.html @@ -1,5 +1,6 @@
+
@@ -14,7 +15,7 @@ Datum:
- Notiz: + Notiz:
@@ -37,7 +38,7 @@
-
{{transactions | json}}
+
{{accounts | json}}