예제 #1
0
<?php

include 'sessionLogin.php';
$login = new SessionLogin();
$login->isUserLogged();
?>

<h2>Itens no carrinho:</h2>

<div class="alert alert-danger" ng-show="displayMessageError" role="alert">
	<p>{{messageError}}</p>
</div>

<div class="alert alert-info" ng-show="displayMessage" role="alert">
	<p>{{message}}</p>
</div>


<div ng-init="loadCartFromSessionStorage()">

	<table class="table table-bordered"> 
		<thead class="text-center">
			<th>Produto</th>
			<th>Valor</th>
			<th>Excluir</th>
		</thead>
		
		<tbody>
			<tr ng-repeat="product in cartItens">
				<td>{{product.nome}}</td>
				<td>{{product.preco | currency:"R$"}}</td>