Another angular question:
The aim is to make it so that a value entered within the #quantity input is the taken and times by the item's price, as listed within the controller.
For example, if the price is 99.00 and the user wants a quantity of 2, the result of 99 * 2 is out put in the .total div.
How would I go about creating this?
The HTML I have is as below:
<input type="number" min="0" max="10" id="quantity" name="store-quantity" value='1'/>
<div class="total">
<!-- Total to be printed here -->
</div>
A small snippet of my store.controller.js
angular.module('angularStoreApp')
.controller('StoreCtrl', function ($scope, $http) {
var item = [
{
name: 'Almond Toe Court Shoes, Patent Black',
price: 99.00,
category: 'Womens Footware',
stock: 5,
canPurchase: true,
images: [
"assets/images/yeoman.png",
"http://billypurvis.co.uk/wp-content/uploads/2015/06/ACTA.png"
]
},