'use strict';

angular.module('metadatamanagementApp').service('MigrationService',
  function(VERSION, localStorageService) {

    var versionKey = 'version';

    var migrate = function() {
      var storedVersion = localStorageService.get(versionKey);
      if (storedVersion !== VERSION) {
        // activate if you made schema changes to the shopping cart
        // ShoppingCartService.clearProducts();
        localStorageService.set(versionKey, VERSION);
      }
    };

    return {
      migrate: migrate
    };
  });

@@ -115,16 +115,37 @@
 eService
+, ShoppingCartService
 ) %7B%0A%0A   
@@ -382,19 +382,16 @@
 %0A       
- //
  Shoppin

clear shopping cart on new version (#2983)