code: function (key) {
        if (!browserSupportsCookies()) {
          $rootScope.$broadcast('LocalStorageModule.notification.error', 'COOKIES_NOT_SUPPORTED');
          return false;
        }
  
        var cookies = $document.cookie && $document.cookie.split(';') || [];
        for(var i=0; i < cookies.length; i++) {
          var thisCookie = cookies[i];
          while (thisCookie.charAt(0) === ' ') {
            thisCookie = thisCookie.substring(1,thisCookie.length);
          }
          if (thisCookie.indexOf(deriveQualifiedKey(key) + '=') === 0) {
            return decodeURIComponent(thisCookie.substring(prefix.length + key.length + 1, thisCookie.length));
          }
        }
        return null;
      }
docs: Directly get a value from a cookie Example use: localStorageService.cookie.get('library'); // returns 'angular'