// app.shoppingListService.js

(function() {
  "use strict";

  angular.module("MyApp")
    .service("ShoppingListService", ShoppingListService);

  ShoppingListService.$inject = ["$q", "WeightLossFilterService"];

  function ShoppingListService($q, WeightLossFilterService) {
    let service = this;

    // List of Shopping items
    let items = [];

    service.addItem = addItem;

    function addItem(itemName, itemQuantity) {
      let promise = WeightLossFilterService.checkName(itemName);

      promise.then(response => {
        let nextPromise = WeightLossFilterService.checkQuantity(itemQuantity);

        nextPromise.then(result => {
          let item = {
            name: itemName,
            quantity: itemQuantity
          };

          items.push(item);
        }, errorResponse => {
          console.log(errorResponse.message);
        });
      }, errorResponse => {
        console.log(errorResponse.message);
      });
    }
  }
})();

@@ -77,10 +77,20 @@
 le(%22
-My
+ShoppingList
 App%22
@@ -386,16 +386,49 @@
 addItem;
+%0A    service.getItems = getItems;
 %0A%0A    fu
@@ -987,16 +987,69 @@
 );%0A    %7D
+%0A%0A    function getItems() %7B%0A      return items;%0A    %7D
 %0A  %7D%0A%7D)(

Change app name. Added getItems method