Siema, tworzę koszyk i mam problem jak wysłać do funkcji setOrder, wartośći z wyswietlanego koszyka, powie mi ktoś jak to zrobić??
<% include ../../share/head.ejs %>
<body ng-controller="CartController" ng-init="init()">
<form name="orderForm" novalidate>
<div class="container">
<div class="row">
<div class="col-md-12">
<% include ../../share/header.ejs %>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h4><span class="label label-warning">Zakupy /<strong style="color: black;"> Potwierdzenie </strong>/ Płatność</span> <br><br></h4>
</div>
</div>
<div class="row">
<div class="col-md-8">
<div ng-if="!cart.length" class="alert alert-info">Koszyk jest pusty</div>
<!--{{cart}}-->
<div ng-if="cart.length">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Nazwa produktu</th>
<th>Ilość</th>
<th>Cena</th>
<th>Razem</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in cart">
<th>{{$index+1}}</th>
<td>{{ item.title }}</td>
<td>{{ item.qty }}</td>
<td>{{ item.price | number:2}} zł</td>
<td>{{ item.price * item.qty | number:2}} zł</td>
</tr>
<tr>
<td colspan="5"></td>
<td>
<h3 class="text-right">Łącznie</h3>
</td>
<td>
<h3>{{total() | number:2}} zł</h3>
</td>
</tr>
</tbody>
</table>
<button class="btn btn-success pull-right" ng-disabled="orderForm.$invalid" >Zapłać</button>
</div>
</div>
</div>
</div>
<script src="/assets/javascripts/CartController/CartController.js"></script>
</form>
</body>
<% include ../../share/end.ejs %>