angular scoped variable in controller not updating when value changed in service
问题 I'm developing a mini-basket in angular for an ecommerce application but have a problem with a scoped variable not updating via a service. When i click on an add to basket button in the product grid it fires the upDateMiniBasket function in the product grid controller which has the UpdateMiniBasket service injected into it. The controller: whiskyControllers.controller('whiskyListCtrlr', ['$scope', 'UpdateMiniBasket', '$http', function($scope, UpdateMiniBasket, $http){ $http.get('json/whiskies