"ShoppingCart-HW"
Bootstrap 3.3.0 Snippet by ReyesJunior

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!DOCTYPE html>
<html>
<head>
<title>Shopping Cart</title>
<link rel="stylesheet" type="text/css" href="shoppingcart.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
</head>
<body>
<div class="container" ng-app="shoppingCartApp">
<div class="row" ng-controller="ShoppingCartController">
<div class="col-xs-8">
<div class="panel panel-info">
<div class="panel-heading">
<div class="panel-title">
<div class="row">
<div class="col-xs-6">
<h5><span class="glyphicon glyphicon-shopping-cart"></span> {{ title }} </h5>
</div>
<div class="col-xs-6">
<button type="button" class="btn btn-primary btn-sm btn-block" id="continue-shopping">
<a href="http://bootsnipp.com/snippets/featured/payment-interface"> <span class="glyphicon glyphicon-share-alt"></span> Continue shopping </a>
</button>
</div>
</div>
</div>
</div>
<div class="panel-body">
<div class="row" ng-repeat="product in invoice.products">
<div class="col-xs-2" ng-model="product.image"><img class="img-responsive" ng-src="{{ product.image }}">
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
body {
margin-top: 20px;
}
#continue-shopping {
color: white;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* /////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* Shopping Cart */
var app = angular.module( 'shoppingCartApp', []);
// Route Provider
/* Shopping cart Controller */
app.controller( 'ShoppingCartController', [ '$scope', function( $scope ) ] ) {
$scope.title = 'Shopping Cart';
$scope.invoice = {
products: [
{
name = 'Apple',
description = 'Yummy Apple',
image = 'img.jpg',
quantity = 1,
cost = '1.35'
},
{
name = 'Banana',
description = 'Yummy Banana',
image = 'img.jpg',
quantity = 1,
cost = '1.75'
},
{
name = 'Orange',
description = 'Yummy Orange',
image = 'img.jpg',
quantity = 1,
cost = '2.55'
}
]
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: