In the navigation bar, I have a snapshot of the shopping cart (total number of items, total cost) that uses $scope.cart .
In ng-view there are pages for adding / removing items in the basket.
It seems that ng-view created an isolated area. If I add elements to $scope.cart , it goes into the area related to ng-view . How can ng-view split parent area?
source share