myApp.controller('InventoryController', function($scope, $window, $location, $routeParams, inventoryService, breadCrumbService) {
    $scope.inventories = inventoryService.loadInventories();
    $scope.inventory = inventoryService.getInventory($routeParams.id);
    $scope.headerIcon = $scope.inventory ? "arrow_back" : "";
    $scope.breadCrumbs = breadCrumbService;

    $scope.$on('$routeChangeSuccess', function (e, curr, prev) {
        var breadCrumb = curr.locals.breadCrumb;

        console.log("Curr: ", curr);
        breadCrumb.path = $location.path();
        breadCrumbService.update(breadCrumb);
    });

    $scope.$on('$routeChangeStart', function(next, current) {
        console.log("Current route: ", current);
        console.log("Next route: ", next);
        breadCrumbService.update(next, current);
     });

    $scope.goBack = function() {
        $window.history.go(-1);
    };

    $scope.newInventory = function() {
        var inventory = inventoryService.newInventory();
        $location.path(`/new/${inventory.id}`);
    };

    $scope.editInventory = function(inv) {
        $location.path(`/edit/${inv.id}`);
    };

    $scope.addInventory = function() {
        var id = $routeParams.id;
        $scope.inventories[id] = $scope.inventory;
        inventoryService.storeInventories();
        $location.path(`/view/${id}`);
    };

    $scope.newItem = function() {
        var id = $scope.inventory.id;
        var item = inventoryService.newItem();
        $location.path(`/edit/${id}/item/new/${item.id}`);
    };

    $scope.addItem = function() {
        var { id, itemId } = $routeParams;
        var inventory = $scope.inventories[id];

        inventory.items[itemId] = $scope.item;
        inventoryService.storeInventories();
        $location.path(`/view/${id}`);
    };

    $scope.removeItem = function() {
    };
});

@@ -479,46 +479,8 @@
 umb;
-%0A%0A        console.log(%22Curr: %22, curr);
 %0A   
@@ -579,221 +579,8 @@
 );%0A%0A
-    $scope.$on('$routeChangeStart', function(next, current) %7B%0A        console.log(%22Current route: %22, current);%0A        console.log(%22Next route: %22, next);%0A        breadCrumbService.update(next, current);%0A     %7D);%0A%0A
     

Remove unnecessary logging and event listener