angular.module('MyApp',['ngMaterial']) .controller('TitleController', function($scope) { $scope.title = "Adult Movie DataBase "; }) .controller('AppCtrl', function($scope) { var imagePath = 'https://i6.fuskator.com/large/l4bDokX55UX/image-2.jpg'; $scope.messages = [{ face : imagePath, what: 'Brunch this weekend?', who: 'Min Li Chan', when: '3:08PM', notes: " I'll be in your neighborhood doing errands" }, { face : 'https://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Tori_Black_AVN_2010.jpg/200px-Tori_Black_AVN_2010.jpg', what: 'Brunch this weekend?', who: 'Min Li Chan', when: '3:08PM', notes: " I'll be in your neighborhood doing errands" }, { face : 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Tori_Black_at_FAME_Awards_2010.jpg/200px-Tori_Black_at_FAME_Awards_2010.jpg', what: 'Brunch this weekend?', who: 'Min Li Chan', when: '3:08PM', notes: " I'll be in your neighborhood doing errands" }, { face : 'https://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/Tori_Black_2014.jpg/220px-Tori_Black_2014.jpg', what: 'Brunch this weekend?', who: 'Min Li Chan', when: '3:08PM', notes: " I'll be in your neighborhood doing errands" }]; var imagePath = 'https://i6.fuskator.com/large/l4bDokX55UX/image-2.jpg'; $scope.productQuantity = 0; $scope.increaseQuantity = function() { $scope.productQuantity = $scope.productQuantity+1; }; $scope.decreaseQuantity = function() { $scope.productQuantity!=0 ? $scope.productQuantity = $scope.productQuantity-1: $scope.productQuantity = 0; }; });