fixed bugs on greuge

This commit is contained in:
gerard 2018-05-24 15:47:04 +02:00
parent 9b8ee8b787
commit c512faf45c
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ class Controller {
this.$ = $scope;
this.$state = $state;
this.greuge = {
shipped: $filter('date')(new Date(), 'yyyy-MM-dd HH:mm')
shipped: new Date()
};
}
onSubmit() {

View File

@ -14,7 +14,7 @@
<vn-horizontal
class="list list-element text-center"
pad-small-bottom
ng-repeat="greuge in index.model.instances track by $index">
ng-repeat="greuge in index.model.instances track by greuge.id">
<vn-one pad-medium-h>{{::greuge.shipped | date:'dd/MM/yyyy HH:mm' }}</vn-one>
<vn-two pad-medium-h>{{::greuge.description}}</vn-two>
<vn-one pad-medium-h>{{::greuge.amount | number:2}} €</vn-one>