JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="angularStoreApp" ng-controller="StoreCtrl as storeCtrl">
<input type="number" min="0" max="10" id="quantity" name="store-quantity" value='1' ng-model="quantity"/>
<div class="total">
{{ storeCtrl.item[0].price * quantity }}
</div>
</div>
JavaScript
angular.module('angularStoreApp', [])
.controller('StoreCtrl', function ($scope, $http) {
$scope.quantity = 0;
this.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"
]
}
]
})