code: function(name, value, options) {
            options = angular.extend(angular.extend({}, defaultOptions), options || {});
  
            document.cookie = cookie.serialize(name, value, options);
          }
docs: @ngdoc method
  @name service:cookies#set
  @description
  Set a cookie named `name` to value `value`.
  
  @param {string} name Name of cookie.
  @param {*} value Value of cookie. Will be coerced to string and passed through
  `encodeURIComponent` unless `encode` is overriden.
  @param {object} options Cookie options, see {@link cookiesProvider#useDefaults useDefaults}.