UNPKG

@martyganz/ngx-cookie

Version:

Implementation of Angular 1.x $cookies service to Angular

45 lines 4.16 kB
/** * @fileoverview added by tsickle * Generated from: lib/cookie-options.model.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * \@name CookieOptionsArgs * \@description * * Object containing default options to pass when setting cookies. * * The object may have following properties: * * - **path** - {string} - The cookie will be available only for this path and its * sub-paths. By default, this is the URL that appears in your `<base>` tag. * - **domain** - {string} - The cookie will be available only for this domain and * its sub-domains. For security reasons the user agent will not accept the cookie * if the current domain is not a sub-domain of this domain or equal to it. * - **expires** - {string|Date} - String of the form "Wdy, DD Mon YYYY HH:MM:SS GMT" * or a Date object indicating the exact date/time this cookie will expire. * - **secure** - {boolean} - If `true`, then the cookie will only be available through a * secured connection. * - **httpOnly** - {boolean} - If `true`, then the cookie will be set with the `HttpOnly` * flag, and will only be accessible from the remote server. Helps to prevent against * XSS attacks. * - **storeUnencoded** - {boolean} - If `true`, then the cookie value will not be encoded and * will be stored as provided. * @record */ export function CookieOptions() { } if (false) { /** @type {?|undefined} */ CookieOptions.prototype.path; /** @type {?|undefined} */ CookieOptions.prototype.domain; /** @type {?|undefined} */ CookieOptions.prototype.expires; /** @type {?|undefined} */ CookieOptions.prototype.secure; /** @type {?|undefined} */ CookieOptions.prototype.httpOnly; /** @type {?|undefined} */ CookieOptions.prototype.storeUnencoded; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29va2llLW9wdGlvbnMubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvc3JjL2xpYi9jb29raWUtb3B0aW9ucy5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQXVCQSxtQ0FPQzs7O0lBTkMsNkJBQWM7O0lBQ2Qs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